mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
(elf_machine_load_address): Use local label.
This commit is contained in:
parent
8470bd531c
commit
e906034738
@ -66,11 +66,11 @@ elf_machine_load_address (void)
|
||||
and compare it with the current value that we can get via
|
||||
an RIP relative addressing mode. */
|
||||
|
||||
asm ("movq .L1(%%rip), %1\n"
|
||||
asm ("movq 1f(%%rip), %1\n"
|
||||
"0:\tleaq _dl_start(%%rip), %0\n\t"
|
||||
"subq %1, %0\n\t"
|
||||
".section\t.data\n"
|
||||
".L1:\t.quad _dl_start\n\t"
|
||||
"1:\t.quad _dl_start\n\t"
|
||||
".previous\n\t"
|
||||
: "=r" (addr), "=r" (tmp) : : "cc");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user