binutils-gdb/gas/testsuite/gas
H.J. Lu b9519cfe98 x86: Properly handle PLT expression in directive
For PLT expressions, we should subtract the PLT relocation size only for
jump instructions.  Since PLT relocations are PC relative, we only allow
"symbol@PLT" in PLT expression.

gas/

	PR gas/23997
	* config/tc-i386.c (x86_cons): Check for invalid PLT expression.
	(md_apply_fix): Subtract the PLT relocation size only for jump
	instructions.
	* testsuite/gas/i386/reloc32.s: Add test for invalid PLT
	expression.
	* testsuite/gas/i386/reloc64.s: Likewise.
	* testsuite/gas/i386/ilp32/reloc64.s: Likewise.
	* testsuite/gas/i386/reloc32.l: Updated.
	* testsuite/gas/i386/reloc64.l: Likewise.
	* testsuite/gas/i386/ilp32/reloc64.l: Likewise.

ld/

	PR gas/23997
	* testsuite/ld-i386/i386.exp: Run PR gas/23997 test.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-x86-64/pr23997a.s: New file.
	* testsuite/ld-x86-64/pr23997b.c: Likewise.
	* testsuite/ld-x86-64/pr23997c.c: Likewise.
2018-12-19 12:22:12 -08:00
..
aarch64 [aarch64] Add support for pointer authentication B key 2018-12-05 18:30:08 +00:00
all PR23938, should not free memory alloced in obstack by free() 2018-12-01 15:18:04 +10:30
alpha
arc gas run_dump_test rename stderr and error-output 2018-09-15 16:24:18 +09:30
arm [GAS][Arm] Skip Local BLX Thumb tests for arm-netbsdelf and arm-nto 2018-12-12 13:31:46 +00:00
avr Fix more fallout from 17f6ade235 2018-09-21 09:55:38 +09:30
bfin
cfi x86: pass -mx86-used-note=no to assembler 2018-08-31 04:39:33 -07:00
cr16
cris
crx
csky Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
d10v
d30v
dlx
elf Update the assembler to use a version of 3 when generating the header of the .debug_line section. 2018-12-03 17:26:41 +00:00
epiphany
fr30
frv
ft32 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
h8300
hppa
i386 x86: Properly handle PLT expression in directive 2018-12-19 12:22:12 -08:00
ia64 Update the assembler to use a version of 3 when generating the header of the .debug_line section. 2018-12-03 17:26:41 +00:00
ieee-fp
ip2k
iq2000
lm32 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
lns
m32r
m68hc11 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
m68k
mach-o gas run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
macros gas run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
mcore
mep gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
metag
microblaze
mips Update the assembler to use a version of 3 when generating the header of the .debug_line section. 2018-12-03 17:26:41 +00:00
mmix
mn10200
mn10300
mri Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
msp430 Tighten the constraints for warning about NOPs for the MSP 430 ISA, so NOPs are only inserted/warned about when needed. Specifically: 430 and 430x ISA require a NOP after DINT. Only the 430x ISA requires NOP before EINT. Only the 430x ISA requires NOP after every EINT. CPU42 errata. 2018-11-27 12:25:09 +00:00
mt
nds32 Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
nios2 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
or1k or1k: Add the l.muld, l.muldu, l.macu, l.msbu insns 2018-10-05 11:41:42 +09:00
pdp11 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
pe
pj
ppc gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
pru Fix binary compatibility between GCC and the TI compiler for the PRU target. 2018-05-09 11:39:32 +01:00
riscv RISC-V: Don't segfault for two regs in auipc or lui. 2018-12-10 16:40:46 -08:00
rl78
rx rx: Add target rx-*-linux. 2018-11-07 17:18:05 +09:00
s12z S12Z opcodes: Fix bug disassembling certain shift instructions. 2018-11-21 21:34:47 +01:00
s390 S/390: Fix optional operand handling after memory addresses 2018-11-09 11:01:01 +01:00
score
sh gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sparc gas run_dump_test rename stderr and error-output 2018-09-15 16:24:18 +09:30
sparc-solaris
symver
tic4x
tic6x gas run_dump_test rename stderr and error-output 2018-09-15 16:24:18 +09:30
tic54x
tilegx
tilepro
v850
vax
visium
wasm32 gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
xc16x
xgate
xstormy16
xtensa gas: xtensa: fix literal movement 2018-05-09 12:44:08 -07:00
z8k
z80
template