]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update elf_machine_load_address for x32
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2012 22:17:30 +0000 (15:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2012 22:17:30 +0000 (15:17 -0700)
ChangeLog
sysdeps/x86_64/dl-machine.h

index 6fbcc32a84bb2ccce595604f67861baba099a7ab..7c487bd6a9f8ac7d6f6364d84da1e1bb310a7ea5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
+       the `q' suffix from lea and replace .quad with ASM_ADDR.
+
 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
index 32814b14f740e0565819b5320382b7d3c3391315..9c27ecffd86f9c240f034be1a7825e8cb4f4f795 100644 (file)
@@ -72,10 +72,10 @@ elf_machine_load_address (void)
      load offset which is zero if the binary was loaded at the address
      it is prelinked for.  */
 
-  asm ("leaq _dl_start(%%rip), %0\n\t"
-       "subq 1f(%%rip), %0\n\t"
+  asm ("lea _dl_start(%%rip), %0\n\t"
+       "sub 1f(%%rip), %0\n\t"
        ".section\t.data.rel.ro\n"
-       "1:\t.quad _dl_start\n\t"
+       "1:\t" ASM_ADDR " _dl_start\n\t"
        ".previous\n\t"
        : "=r" (addr) : : "cc");