[PATCH 1/2] [PR ld/22263] s390: Avoid dynamic TLS relocs in PIE

Andreas Krebbel krebbel@linux.ibm.com
Thu Apr 28 12:55:50 GMT 2022


On 4/28/22 10:19, Stefan Liebler wrote:
> 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.

Committed to master, 2.38, and 2.37 branch. Thanks!

Andreas


More information about the Binutils mailing list