summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-07 23:34:29 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-07 23:34:29 +0000
commit0b78d3bb1abcb1d5e31d9a2a3fff77dd61167f28 (patch)
tree57307cf5c531951056dcea7fc8e1f6895af0578d /ldso
parent94ba4f0d693305b3f290de1e5f2a0c961988fcc2 (diff)
remove broken asm code in elf_machine_dynamic() and just do it the glibc way (since it works)
Diffstat (limited to 'ldso')
-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
}