diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-12 13:53:13 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-12 13:53:13 +0100 |
commit | e3669c7f7ba400bb56738d5460a3ea194916599d (patch) | |
tree | fa2c45b70f6c0c3626b018cb6eb08921756a6a9b /opcodes | |
parent | e2b983d47e725a1c1340b535a8ec44bb406ff0ee (diff) | |
download | binutils-e3669c7f7ba400bb56738d5460a3ea194916599d.zip binutils-e3669c7f7ba400bb56738d5460a3ea194916599d.tar.gz binutils-e3669c7f7ba400bb56738d5460a3ea194916599d.tar.bz2 |
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.
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions