diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-10-02 19:46:46 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-10-04 10:57:00 +0100 |
commit | 9cb09e33e04feb12df2aaa6e81d61b82ad609ce5 (patch) | |
tree | 7e3b5182c409d7ad3bfc79c2f87397e70affee98 /include/COPYING3 | |
parent | b627f56244cb2930c5891cfde03586987d46b5d2 (diff) | |
download | gdb-9cb09e33e04feb12df2aaa6e81d61b82ad609ce5.zip gdb-9cb09e33e04feb12df2aaa6e81d61b82ad609ce5.tar.gz gdb-9cb09e33e04feb12df2aaa6e81d61b82ad609ce5.tar.bz2 |
[PR ld/22263][PR ld/25056] arm: Avoid dynamic TLS relocs in PIE
Dynamic relocs are only needed in an executable for TLS symbols if
those are defined in an external module and even then TLS access
can be relaxed to use IE model instead of GD.
Several bfd_link_pic checks are turned into bfd_link_dll checks
to fix TLS handling in PIE, for the same fix some other targets
used !bfd_link_executable checks, but that includes relocatable
objects so dll seems safer (in most cases either should work, since
dynamic relocations are not applied in relocatable objects).
On arm* fixes
FAIL: Build pr22263-1
bfd/
PR ld/22263
PR ld/25056
* elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
bfd_link_pic for TLS checks.
(elf32_arm_final_link_relocate): Likewise.
(allocate_dynrelocs_for_symbol): Likewise.
Diffstat (limited to 'include/COPYING3')
0 files changed, 0 insertions, 0 deletions