Rework the alignment check for BFD_RELOC_MIPS_18_PCREL_S3.
authorMatthew Fortune <matthew.fortune@imgtec.com>
Tue, 16 Dec 2014 12:39:22 +0000 (12:39 +0000)
committerMatthew Fortune <matthew.fortune@imgtec.com>
Fri, 19 Dec 2014 20:31:55 +0000 (20:31 +0000)
commit3cbabe78aa167e2d4def377c357d80179e955e43
treefbf1d40c4e153b7ece3ec13af0fbe2df3eb57f7f
parentfab39d55fa914ad1cea809848899c76c64eaab9d
Rework the alignment check for BFD_RELOC_MIPS_18_PCREL_S3.

gas/

* config/tc-mips.c (md_apply_fix): Apply alignment check
to the symbol and offset rather than *valP for
BFD_RELOC_MIPS_18_PCREL_S3.  Also update the error message
for BFD_RELOC_MIPS_19_PCREL_S2.

gas/testsuite/

* gas/mips/r6-64.s: Remove .align directives from LDPC
instructions and add further tests for LDPC.
* gas/mips/r6-64-n32.d: remove the NOPs from LDPC expected
output and update for new tests.
* gas/mips/r6-64-n64.d: Likewise.
* gas/mips/ldpc-unalign.l: New file.
* gas/mips/ldpc-unalign.s: Likewise.
* gas/mips/mips.exp: Run ldpc-unalign test.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/ldpc-unalign.l [new file with mode: 0644]
gas/testsuite/gas/mips/ldpc-unalign.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/r6-64-n32.d
gas/testsuite/gas/mips/r6-64-n64.d
gas/testsuite/gas/mips/r6-64.s