Prevent a seg-fault in the linker when trying to process SH object files with bogus...
authorNick Clifton <nickc@redhat.com>
Mon, 30 Jul 2018 12:58:15 +0000 (13:58 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 30 Jul 2018 12:58:15 +0000 (13:58 +0100)
commita05b9f5e1eb8f01eea23eff3902fa57f1f28a4e1
tree66e18811b3b3248500fd48c8c892bb2367853249
parent4570c3d98c0a35e52fa4117d07b78d4f461b6f26
Prevent a seg-fault in the linker when trying to process SH object files with bogus relocs.

PR 22706
* elf32-sh.c (sh_elf_relocate_section): When processing
translation relocs, fail if the relocation offset is too small.
Replace BFD_ASSERTs with more helpful error messages.
bfd/ChangeLog
bfd/elf32-sh.c