[uClibc-cvs] svn commit: trunk/uClibc/ldso/ldso/x86_64
vapier at uclibc.org
vapier at uclibc.org
Thu Jul 7 23:34:29 UTC 2005
Author: vapier
Date: 2005-07-07 17:34:29 -0600 (Thu, 07 Jul 2005)
New Revision: 10740
Log:
remove broken asm code in elf_machine_dynamic() and just do it the glibc way (since it works)
Modified:
trunk/uClibc/ldso/ldso/x86_64/dl-sysdep.h
Changeset:
Modified: trunk/uClibc/ldso/ldso/x86_64/dl-sysdep.h
===================================================================
--- trunk/uClibc/ldso/ldso/x86_64/dl-sysdep.h 2005-07-07 23:30:36 UTC (rev 10739)
+++ trunk/uClibc/ldso/ldso/x86_64/dl-sysdep.h 2005-07-07 23:34:29 UTC (rev 10740)
@@ -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 @@
{
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
}
More information about the uClibc-cvs
mailing list