aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/elf.h20
-rw-r--r--elf/rtld.c2
2 files changed, 20 insertions, 2 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 */
diff --git a/elf/rtld.c b/elf/rtld.c
index 58f9da8..028467f 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -93,8 +93,6 @@ const char *_dl_inhibit_rpath; /* RPATH values which should be
never be called. */
int _dl_starting_up;
-/* This variable contains the lowest stack address ever used. */
-void *__libc_stack_end;
static void dl_main (const ElfW(Phdr) *phdr,
ElfW(Half) phent,