mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
arm: Don't check _DYNAMIC in elf_machine_load_address
Since arm can't convert access _DYNAMIC via GOT, which needs dynamic relocation, to PC-relative at link-time, don't check _DYNAMIC in elf_machine_load_address. * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't check _DYNAMIC.
This commit is contained in:
parent
cdd4155d6c
commit
c34a19ed4b
@ -1,3 +1,8 @@
|
||||
2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
|
||||
check _DYNAMIC.
|
||||
|
||||
2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* math/test-math-iscanonical.cc (error): Replace bool with int.
|
||||
|
@ -59,9 +59,6 @@ elf_machine_load_address (void)
|
||||
Elf32_Addr got_addr = (Elf32_Addr) &__dl_start;
|
||||
asm ("adr %0, _dl_start" : "=r" (pcrel_addr));
|
||||
#else
|
||||
extern Elf32_Dyn _DYNAMIC[] __attribute__((weak, visibility ("hidden")));
|
||||
if (!_DYNAMIC)
|
||||
return 0;
|
||||
extern Elf32_Addr __dl_relocate_static_pie (void *)
|
||||
asm ("_dl_relocate_static_pie") attribute_hidden;
|
||||
Elf32_Addr got_addr = (Elf32_Addr) &__dl_relocate_static_pie;
|
||||
|
Loading…
Reference in New Issue
Block a user