diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2025-09-30 08:18:29 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2025-10-03 06:03:21 +0800 |
| commit | 6b21c8b2ecfef5c95142cbc2c32f185cb1c26ab0 (patch) | |
| tree | ebc6baf9929de96dff888e7d591175553c047734 /gdb/python/python-internal.h | |
| parent | bf7c1b207d84707b8bb99fb57122e3e58d3065fe (diff) | |
| download | binutils-6b21c8b2ecfef5c95142cbc2c32f185cb1c26ab0.zip binutils-6b21c8b2ecfef5c95142cbc2c32f185cb1c26ab0.tar.gz binutils-6b21c8b2ecfef5c95142cbc2c32f185cb1c26ab0.tar.bz2 | |
x86: Disallow TLS relocation in non executable section
Since TLS relocations are applied to executable machine instructions,
disallow TLS relocation in non-SHT_PROGBITS, non-SHF_EXECINSTR section.
PR ld/33451
PR ld/33502
* elf32-i386.c (elf_i386_tls_transition): Disallow TLS relocation
in non-SHT_PROGBITS, non-SHF_EXECINSTR section.
(elf_i386_scan_relocs): Likewise.
* elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
(elf_x86_64_scan_relocs): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_report_tls_invalid_section_error):
New.
* elfxx-x86.h (_bfd_x86_elf_link_report_tls_invalid_section_error):
Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions
