Fix potential crashes when Target::make_symbol() returns NULL.
authorJames Clarke <jrtc27@jrtc27.com>
Wed, 10 Aug 2016 16:58:01 +0000 (09:58 -0700)
committerCary Coutant <ccoutant@gmail.com>
Wed, 10 Aug 2016 16:58:01 +0000 (09:58 -0700)
commit2c00092dced3808ce4dcb76a9e7c473530dd01e8
tree22d6fb414fd849543da67da3ec3fa041d5452281
parent007801eeb19ed565eb4dc4020831f6d293f46930
Fix potential crashes when Target::make_symbol() returns NULL.

2016-08-10  James Clarke  <jrtc27@jrtc27.com>

gold/
PR gold/20443
* symtab.cc (Symbol_table::add_from_relobj): Handle NULL symbols,
which will be present for STT_SPARC_REGISTER.
(Symbol_table::add_from_pluginobj): Likewise.
(Symbol_table::add_from_dynobj): Likewise.
(Symbol_table::add_from_incrobj): Removed dead code.
gold/ChangeLog
gold/symtab.cc