]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Enable TLS relocation check only for ELF
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Sep 2024 21:02:22 +0000 (05:02 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Sep 2024 21:52:43 +0000 (05:52 +0800)
commit9e0840deed38b0a52a895c0abd3d5b0adacbc8a5
treef610f13a8be4af36d730b70cabbe0a16f461fc34
parent2edcfde44c5bf915af5fbe2f25ebafd7ba57fad3
x86: Enable TLS relocation check only for ELF

Since TLS relocation check is ELF specific, enable it only for ELF.

PR gas/32022
* config/tc-i386.c (x86_tls_error_type): Define only if
OBJ_MAYBE_ELF or OBJ_ELF is defined.
(x86_check_tls_relocation): Likewise.
(x86_report_tls_error): Likewise.
(i386_assemble): Check TLS relocations only if OBJ_MAYBE_ELF or
OBJ_ELF is defined.
(md_show_usage): Output -mtls-check= only if OBJ_MAYBE_ELF or
OBJ_ELF is defined.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gas/config/tc-i386.c