Add a more helpful warning message to explain why some AArch64 relocations can overflow.
authorNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2016 09:56:21 +0000 (09:56 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2016 09:56:21 +0000 (09:56 +0000)
commit2ea53e003163338a403d5afbb2046cafb8f3abe9
tree4239dc30b45ff76536a55578194b080124302ec1
parent24f5f69a8a1d09c317a5f28d324fca73a8a0b930
Add a more helpful warning message to explain why some AArch64 relocations can overflow.

bfd * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
helpful warning message to explain why certain AArch64 relocs
might overflow.

ld * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
* testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
* testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/reloc-overflow-1.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/reloc-overflow-2.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/reloc-overflow-bad.d [new file with mode: 0644]