diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-28 10:57:58 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-28 10:59:45 +0100 |
commit | 99aefae6818be07a77739e0366121f2032916d9c (patch) | |
tree | 9f06d7da4abc5ef64fd089f95f78a30d706f6ef1 /ld/ChangeLog | |
parent | 3b4412a0419d0faa42432df1e4faab880fe43b35 (diff) | |
download | gdb-99aefae6818be07a77739e0366121f2032916d9c.zip gdb-99aefae6818be07a77739e0366121f2032916d9c.tar.gz gdb-99aefae6818be07a77739e0366121f2032916d9c.tar.bz2 |
MIPS/BFD: Correctly handle `bfd_reloc_outofrange' with branches
Fix internal errors like:
ld: BFD (GNU Binutils) 2.26.51.20160526 internal error, aborting at .../bfd/elfxx-mips.c:10278 in _bfd_mips_elf_relocate_section
ld: Please report this bug.
triggered by the `bfd_reloc_outofrange' condition on branch relocations.
bfd/
* elfxx-mips.c (b_reloc_p): New function.
(_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Handle
branch relocations.
ld/
* testsuite/ld-mips-elf/unaligned-branch.d: New test.
* testsuite/ld-mips-elf/unaligned-branch.s: New test source.
* testsuite/ld-mips-elf/unaligned-text.s: New test source.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 238b25f..1b99a43 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,12 @@ 2016-05-28 Maciej W. Rozycki <macro@imgtec.com> + * testsuite/ld-mips-elf/unaligned-branch.d: New test. + * testsuite/ld-mips-elf/unaligned-branch.s: New test source. + * testsuite/ld-mips-elf/unaligned-text.s: New test source. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new test. + +2016-05-28 Maciej W. Rozycki <macro@imgtec.com> + * testsuite/ld-mips-elf/unaligned-syms.s: Rename to... * testsuite/ld-mips-elf/unaligned-data.s: ... this. * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Adjust accordingly. |