]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: move bad-use-of-TLS-reloc check
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 12:53:13 +0000 (13:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 12:53:13 +0000 (13:53 +0100)
commite3669c7f7ba400bb56738d5460a3ea194916599d
treefa2c45b70f6c0c3626b018cb6eb08921756a6a9b
parente2b983d47e725a1c1340b535a8ec44bb406ff0ee
x86: move bad-use-of-TLS-reloc check

Having it in match_template() is unhelpful. Neither does looking for the
next template to possibly match make any sense in that case, nor is the
resulting diagnostic making clear what the problem is.

While moving the check, also generalize it to include all SIMD and VEX-
encoded insns. This way an existing conditional can be re-used in
md_assemble(). Note though that this still leaves a lof of insns which
are also wrong to use with these relocations.

Further fold the remaining check (BFD_RELOC_386_GOT32) with the XRELEASE
related one a few lines down. This again allows re-using an existing
conditional.
gas/config/tc-i386.c