aboutsummaryrefslogtreecommitdiff
path: root/elf/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 80f10d6..95f964f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -168,6 +168,8 @@ typedef struct
#define EM_PPC 20 /* PowerPC */
+#define EM_ARM 40 /* ARM */
+
#define EM_SPARCV9 43 /* SPARC v9 64-bit */
/* If it is necessary to assign new unofficial EM_* values, please
@@ -1086,6 +1088,24 @@ typedef Elf32_Addr Elf32_Conflict;
that may still be in object files. */
#define R_PPC_TOC16 255
+
+/* ARM specific declarations */
+
+/* ARM relocs. */
+
+#define R_ARM_NONE 0 /* No reloc */
+#define R_ARM_PC24 1 /* PC relative 26 bit branch */
+#define R_ARM_ABS32 2 /* Direct 32 bit */
+#define R_ARM_REL32 3 /* PC relative 32 bit */
+#define R_ARM_COPY 20 /* Copy symbol at runtime */
+#define R_ARM_GLOB_DAT 21 /* Create GOT entry */
+#define R_ARM_JUMP_SLOT 22 /* Create PLT entry */
+#define R_ARM_RELATIVE 23 /* Adjust by program base */
+#define R_ARM_GOTOFF 24 /* 32 bit offset to GOT */
+#define R_ARM_GOTPC 25 /* 32 bit PC relative offset to GOT */
+#define R_ARM_GOT32 26 /* 32 bit GOT entry */
+#define R_ARM_PLT32 27 /* 32 bit PLT address */
+
__END_DECLS
#endif /* elf.h */