Fix a seg-fault when processing a corrupt binary containing reloc(s) with negative...
authorNick Clifton <nickc@redhat.com>
Wed, 26 Apr 2017 15:30:22 +0000 (16:30 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 26 Apr 2017 15:30:22 +0000 (16:30 +0100)
commit04b31182bf3f8a1a76e995bdfaaaab4c009b9cb2
tree8fe1f38692abfb15f4df26fc6138af2a4a64742c
parentd21f3ddb0d5f95aff5c769ae283ce5522262f48d
Fix a seg-fault when processing a corrupt binary containing reloc(s) with negative addresses.

PR binutils/21434
* reloc.c (bfd_perform_relocation): Check for a negative address
in the reloc.
bfd/ChangeLog
bfd/reloc.c