Fix seg-fault running strip on a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Dec 2016 16:26:42 +0000 (16:26 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Dec 2016 16:26:42 +0000 (16:26 +0000)
commit8b929e420a810afe23d5ba57a98109c74d1d5816
treeddd34404fc19629ed6edc0d7cd931eeb6adc5c43
parent92744f058094edd0b29bf9762f4ac26e4c6743c2
Fix seg-fault running strip on a corrupt binary.

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