gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 20 Mar 2014 21:18:43 +0000 (21:18 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Thu, 20 Mar 2014 21:18:43 +0000 (21:18 +0000)
commitd56a8dda6d5a1864b54230b356d92ce60397f0e8
tree5cb7c99ca5b10730f0d2661604a7147bd8320697
parent1bff71c3251e2f0836163e49ecd4b55861f4eb83
gas/
* config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
* config/tc-mips.c (md_pcrel_from): Remove error message.
(md_apply_fix): Convert PC-relative BFD_RELOC_32s to
BFD_RELOC_32_PCREL.  Report a specific error message for unhandled
PC-relative expressions.  Handle BFD_RELOC_8.

gas/testsuite/
* gas/all/gas.exp: Remove XFAIL of forward.d for MIPS.
* gas/mips/pcrel-1.s, gas/mips/pcrel-1.d, gas/mips/pcrel-2.s,
gas/mips/pcrel-2.d, gas/mips/pcrel-3.s, gas/mips/pcrel-3.l,
gas/mips/pcrel-4.s, gas/mips/pcrel-4-32.d, gas/mips/pcrel-4-n32.d,
gas/mips/pcrel-4-64.d: New tests.
* gas/mips/mips.exp: Run them.
* gas/mips/lui-2.l: Tweak error message for line 7.

ld/testsuite/
* ld-elf/merge.d: Remove MIPS XFAIL.
19 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/config/tc-mips.h
gas/testsuite/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/mips/lui-2.l
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/pcrel-1.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-1.s [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-2.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-2.s [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-3.l [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-3.s [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-4-32.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-4-64.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-4-n32.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-4.s [new file with mode: 0644]
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/merge.d