Fix problem where undef can fail to trigger archive rescan.
authorStephen Crane <sjc@immunant.com>
Fri, 1 Dec 2017 20:10:02 +0000 (12:10 -0800)
committerCary Coutant <ccoutant@gmail.com>
Fri, 1 Dec 2017 20:10:02 +0000 (12:10 -0800)
commit71739b698d47945463f183619078ff680c277f0f
tree52ab242525ddf5bbf79c77d120bab54b339d1318
parente2e321740ce2e36a97be2a410cd56eebaa2304aa
Fix problem where undef can fail to trigger archive rescan.

If a shared library contains an undefined symbol and LTO adds
a new reference to that same undefined symbol, the reference in the new
object added by the plugin would not trigger a rescan of the archive
containing the symbol.

2017-11-17  Stephen Crane  <sjc@immunant.com>

gold/
PR gold/22448
* symtab.cc (Symbol_table::add_from_object): Only rescan for
undefined symbols in regular, not dynamic, objects.
gold/ChangeLog
gold/symtab.cc