s390: Avoid dynamic TLS relocs in PIE
authorStefan Liebler <stli@linux.ibm.com>
Thu, 28 Apr 2022 12:29:58 +0000 (14:29 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 28 Apr 2022 12:52:02 +0000 (14:52 +0200)
commit26b1426577b5dcb32d149c64cca3e603b81948a9
treeed109521e3c67d2af4326928b0bfa6cefd2e7a44
parent95ade9a5f4becb3905a9261ead9b274347010636
s390: Avoid dynamic TLS relocs in PIE

No dynamic relocs are needed for TLS defined in an executable, the
TP relative offset is known at link time.

Fixes
FAIL: Build pr22263-1

bfd/
PR ld/22263
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
instead of bfd_link_pic for TLS.
(elf_s390_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
bfd/elf64-s390.c