]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: tighten convert-load-reloc checking
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jan 2025 09:26:46 +0000 (10:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jan 2025 09:26:46 +0000 (10:26 +0100)
commit4998f9ea9d351d546f317af80e054a5d615edaae
tree7135d7df0625980c99d277883914df13b687956f
parent6a7a2387ade0223358bebe1cd3103a286897b241
x86-64: tighten convert-load-reloc checking

Even if the assembler avoids using relaxable relocations for
inapplicable insns, such relocations can still appear for other reasons.
Be more thorough in the opcode checking we do, to avoid bogusly altering
other insns.

Furthermore correct an opcode mask (even if with the added condition
that's now fully benign).
bfd/elf64-x86-64.c
ld/testsuite/ld-x86-64/load4.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/load4.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp