Files
binutils-gdb/ld/testsuite/ld-i386/load8.d
Jan Beulich e6dc092038 ix86: tighten convert-load-reloc checking
Just like was done recently for x86-64 (commit 4998f9ea9d): Even if
the assembler avoids using the relaxable relocation for inapplicable
insns, the relocation type 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).
2025-02-21 10:22:50 +01:00

15 lines
409 B
Makefile

#as: --32 -mrelax-relocations=yes
#ld: -melf_i386 -z noseparate-code
#objdump: -dw
.*: +file format .*
Disassembly of section .text:
0+8048074 <_start>:
[ ]*[a-f0-9]+: 12 05 90 90 04 08 adc 0x8049090,%al
[ ]*[a-f0-9]+: 6b 05 90 90 04 08 01 imul \$(0x)?1,0x8049090,%eax
[ ]*[a-f0-9]+: 84 35 90 90 04 08 test %dh,0x8049090
[ ]*[a-f0-9]+: 87 05 90 90 04 08 xchg %eax,0x8049090
#pass