MIPS/BFD: Don't stop processing on `bfd_reloc_outofrange'
authorMaciej W. Rozycki <macro@imgtec.com>
Thu, 26 May 2016 11:24:45 +0000 (12:24 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 26 May 2016 11:28:59 +0000 (12:28 +0100)
commited53407eec9eba3b55a3a00fb7eaa7eddbf01363
treeabf4dced982505b61144fe149fc99e7374e237e9
parent0d832c8ea736150cb246f8988b2f9f78bf58de5e
MIPS/BFD: Don't stop processing on `bfd_reloc_outofrange'

Upon a `bfd_reloc_outofrange' error continue processing so that any
further issues are also reported, similarly to how `bfd_reloc_overflow'
is handled.  Adjust message formatting accordingly, using `%X' to abort
processing at conclusion.

Reduce the number of test cases by grouping relocations the handling of
which can now be verified together with a single source and dump.

bfd/
* elfxx-mips.c (_bfd_mips_elf_relocate_section)
<bfd_reloc_outofrange>: Use the `%X%H' rather than `%C' format
for message.  Continue processing rather than returning failure.

ld/
* testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
`unaligned-jalx-2' here.
* testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
`unaligned-jalx-mips16-2' here.
* testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
`unaligned-jalx-micromips-2' here.
* testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
* testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
message.
* testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
* testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
* testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
test.
* testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
* testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
`unaligned-lwpc-3' here.
* testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
`unaligned-lwpc-2' here.
* testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
* testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
* testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
* testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
* testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
* testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
`unaligned-ldpc-4' here.
* testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
message.  Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
* testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
* testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
* testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
* testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
* testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
* testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
* testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
* testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
33 files changed:
bfd/ChangeLog
bfd/elfxx-mips.c
ld/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/unaligned-jalx-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-0.s
ld/testsuite/ld-mips-elf/unaligned-jalx-1.d
ld/testsuite/ld-mips-elf/unaligned-jalx-2.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-jalx-2.s [deleted file]
ld/testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d
ld/testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d
ld/testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-0.d
ld/testsuite/ld-mips-elf/unaligned-ldpc-0.s
ld/testsuite/ld-mips-elf/unaligned-ldpc-1.d
ld/testsuite/ld-mips-elf/unaligned-ldpc-1.s
ld/testsuite/ld-mips-elf/unaligned-ldpc-2.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-2.s [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-3.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-3.s [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-4.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-ldpc-4.s [deleted file]
ld/testsuite/ld-mips-elf/unaligned-lwpc-0.d
ld/testsuite/ld-mips-elf/unaligned-lwpc-0.s
ld/testsuite/ld-mips-elf/unaligned-lwpc-1.d
ld/testsuite/ld-mips-elf/unaligned-lwpc-1.s
ld/testsuite/ld-mips-elf/unaligned-lwpc-2.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-lwpc-2.s [deleted file]
ld/testsuite/ld-mips-elf/unaligned-lwpc-3.d [deleted file]
ld/testsuite/ld-mips-elf/unaligned-lwpc-3.s [deleted file]