From 0b78d3bb1abcb1d5e31d9a2a3fff77dd61167f28 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 7 Jul 2005 23:34:29 +0000 Subject: remove broken asm code in elf_machine_dynamic() and just do it the glibc way (since it works) --- ldso/ldso/x86_64/dl-sysdep.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ldso/ldso/x86_64') 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 +#include /* 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 } -- cgit v1.2.3