summaryrefslogtreecommitdiff
path: root/ldso/ldso/x86_64/dl-sysdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/x86_64/dl-sysdep.h')
-rw-r--r--ldso/ldso/x86_64/dl-sysdep.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/ldso/ldso/x86_64/dl-sysdep.h b/ldso/ldso/x86_64/dl-sysdep.h
index 6d73e1e51..e8346452c 100644
--- a/ldso/ldso/x86_64/dl-sysdep.h
+++ b/ldso/ldso/x86_64/dl-sysdep.h
@@ -23,6 +23,7 @@
/* Define this if the system uses RELOCA. */
#define ELF_USES_RELOCA
#include <elf.h>
+#include <link.h>
/* Initialization sequence for the GOT. */
#define INIT_GOT(GOT_BASE,MODULE) \
do { \
@@ -64,17 +65,11 @@ elf_machine_dynamic (void)
{
Elf64_Addr addr;
-#if 0
/* This works because we have our GOT address available in the small PIC
model. */
addr = (Elf64_Addr) &_DYNAMIC;
return addr;
-#else
- asm("mov 0(%%rip), %0"
- : "=r" (addr));
- return addr;
-#endif
}