Don't emit symbols seen only in dynamic object, don't read duplicate

dynamic object.
This commit is contained in:
Ian Lance Taylor 2006-12-06 06:28:56 +00:00
parent 8f2e9323f0
commit 008db82ec1
8 changed files with 96 additions and 37 deletions

View file

@ -156,7 +156,12 @@ Symbol_table::resolve(Sized_symbol<size>* to,
gold_exit(false);
}
if (object->is_dynamic())
if (!object->is_dynamic())
{
// Record that we've seen this symbol in a regular object.
to->set_in_reg();
}
else
{
frombits |= (1 << 1);