mirror of git://sourceware.org/git/glibc.git
Update elf_machine_load_address for x32
This commit is contained in:
parent
e02f153a1a
commit
11de3a3371
|
@ -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>
|
2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
|
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
|
||||||
|
|
|
@ -72,10 +72,10 @@ elf_machine_load_address (void)
|
||||||
load offset which is zero if the binary was loaded at the address
|
load offset which is zero if the binary was loaded at the address
|
||||||
it is prelinked for. */
|
it is prelinked for. */
|
||||||
|
|
||||||
asm ("leaq _dl_start(%%rip), %0\n\t"
|
asm ("lea _dl_start(%%rip), %0\n\t"
|
||||||
"subq 1f(%%rip), %0\n\t"
|
"sub 1f(%%rip), %0\n\t"
|
||||||
".section\t.data.rel.ro\n"
|
".section\t.data.rel.ro\n"
|
||||||
"1:\t.quad _dl_start\n\t"
|
"1:\t" ASM_ADDR " _dl_start\n\t"
|
||||||
".previous\n\t"
|
".previous\n\t"
|
||||||
: "=r" (addr) : : "cc");
|
: "=r" (addr) : : "cc");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue