summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2024-04-03 02:17:38 +0000
committer Elliott Hughes <enh@google.com> 2024-04-03 15:04:36 +0000
commitdec2fdc5432315020a61ae89a20f5195e5a591ca (patch)
tree4eb9cb717fe5935f3e3bdb95f7856352b6206cd1
parentcf654f0fe56c83110114e1eb82bac73faf1b07da (diff)
elf_utils.h: remove more duplicated constants.
These are in all of bionic/glibc/musl. Also comment on why we can't remove the EF_RISCV_ definitions yet. Change-Id: Icd0338df57d0f32a9033a706e9a983b5d6441d9c
-rw-r--r--libelffile/elf/elf_utils.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libelffile/elf/elf_utils.h b/libelffile/elf/elf_utils.h
index 8c62c1c09a..66bbcf0efc 100644
--- a/libelffile/elf/elf_utils.h
+++ b/libelffile/elf/elf_utils.h
@@ -60,11 +60,7 @@ struct ElfTypes64 {
#define ELF_ST_BIND(x) ((x) >> 4)
#define ELF_ST_TYPE(x) ((x) & 0xf)
-// Architecture dependent flags for the ELF header.
-#define EF_ARM_EABI_VER5 0x05000000
-
-#define EI_ABIVERSION 8
-
+// Missing from musl (https://www.openwall.com/lists/musl/2024/03/21/10).
#ifndef EF_RISCV_RVC
#define EF_RISCV_RVC 0x1
#define EF_RISCV_FLOAT_ABI_DOUBLE 0x4