diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 15:17:30 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 15:17:30 -0700 |
commit | 11de3a3371c18b6fe955d4b43071656baf4b8804 (patch) | |
tree | 5c103ab69b4e5642e8fd91ff389d5b0d17f273e0 /sysdeps/x86_64/dl-machine.h | |
parent | e02f153a1ab75b95e3991dd9dbd3b9220dc9c3ae (diff) | |
download | glibc-11de3a3371c18b6fe955d4b43071656baf4b8804.tar.gz |
Update elf_machine_load_address for x32
Diffstat (limited to 'sysdeps/x86_64/dl-machine.h')
-rw-r--r-- | sysdeps/x86_64/dl-machine.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h index 32814b14f7..9c27ecffd8 100644 --- a/sysdeps/x86_64/dl-machine.h +++ b/sysdeps/x86_64/dl-machine.h @@ -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"); |