[PATCH][PR ld/22263] aarch64: Avoid dynamic TLS relocs in PIE
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Nov 24 09:47:00 GMT 2017
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/
2017-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR ld/22263
* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Use
bfd_link_executable instead of bfd_link_pic for TLS.
(elfNN_aarch64_allocate_dynrelocs): Likewise.
(aarch64_can_relax_tls): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pie-tls.diff
Type: text/x-patch
Size: 1553 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171124/0e28fe3b/attachment.bin>
More information about the Binutils
mailing list