From be3e620119165a017266af64ae310cd6343a370a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 14 Mar 2008 05:57:19 +0000 Subject: Don't get confused about whether a symbol is the default version if we see a later reference to it. Add tests for this case. --- gold/symtab.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gold/symtab.cc') diff --git a/gold/symtab.cc b/gold/symtab.cc index 1232d05..b32dcb4 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -643,7 +643,8 @@ Symbol_table::add_from_object(Object* object, if (!was_common && ret->is_common()) this->commons_.push_back(ret); - ret->set_is_default(def); + if (def) + ret->set_is_default(); return ret; } -- cgit v1.1