[PATCH] i386: Add GLIBC_ABI_GNU_TLS dependency only if used

H.J. Lu hjl.tools@gmail.com
Mon Dec 8 02:12:32 GMT 2025
Add GLIBC_ABI_GNU_TLS version dependency only if ___tls_get_addr is
referenced by regular object.

bfd/

PR ld/33287
PR ld/33702
* elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Set
has_tls_get_addr_call only if referenced by regular object.

ld/

PR ld/33287
PR ld/33702
* testsuite/ld-i386/i386.exp: Run PR ld/33702 test.
* testsuite/ld-i386/no-tls.c: New file.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-i386-Add-GLIBC_ABI_GNU_TLS-dependency-only-if-used.patch
Type: text/x-patch
Size: 2391 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20251208/42d25b85/attachment.bin>


More information about the Binutils mailing list