Fix seg-fault running strip on a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 13:11:01 +0000 (13:11 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 13:11:01 +0000 (13:11 +0000)
commit88add6d8e794073758b5398c52bbb76ab40a2923
tree3e65c30add5d29ea1f07dd1d981027982a7228b6
parentdaae68f4f372e0618d6b9c64ec0f1f74eae6ab3d
Fix seg-fault running strip on a corrupt binary.

PR ld/20923
* objcopy.c (mark_symbols_used_in_relocations): Check for a null
symbol pointer before attempting to mark the symbol as kept.
binutils/ChangeLog
binutils/objcopy.c