* archive.cc (Archive::add_symbols): Only look up a symbol without

a version if there is, in fact, a version.
This commit is contained in:
Ian Lance Taylor 2009-12-15 22:05:22 +00:00
parent efdb52b70e
commit 0649a88912
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-12-15 Ian Lance Taylor <iant@google.com>
* archive.cc (Archive::add_symbols): Only look up a symbol without
a version if there is, in fact, a version.
2009-12-14 Ian Lance Taylor <iant@google.com>
Revert -Wshadow changes, all changes from:

View File

@ -688,6 +688,7 @@ Archive::add_symbols(Symbol_table* symtab, Layout* layout,
Symbol* sym = symtab->lookup(sym_name, ver);
if (def
&& ver != NULL
&& (sym == NULL
|| !sym->is_undefined()
|| sym->binding() == elfcpp::STB_WEAK))