[PATCH] x86: Check TLS relocation against non-thread local symbol
H.J. Lu
hjl.tools@gmail.com
Thu Jul 30 10:59:14 GMT 2026
TLS relocations must be against thread local symbols. Update x86 scan
relocs functions to issue an error for TLS relocation against non-thread
local symbol.
PR ld/34448
* elf32-i386.c (elf_i386_scan_relocs): Issue an error for TLS
relocation against non-thread local symbol.
* elf64-x86-64.c (elf_x86_64_scan_relocs): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_report_tls_invalid_section_error):
Check relocation against non-thread local symbol.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Check-TLS-relocation-against-non-thread-local-sy.patch
Type: text/x-patch
Size: 3220 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260730/848b8a73/attachment.bin>
More information about the Binutils
mailing list