aboutsummaryrefslogtreecommitdiff
path: root/gold/archive.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-12-15 22:05:22 +0000
committerIan Lance Taylor <ian@airs.com>2009-12-15 22:05:22 +0000
commit0649a8891297644c801b0df951be9f7c957c23a1 (patch)
tree29d96716acb0bf9227833ce1487463e711bd9840 /gold/archive.cc
parentefdb52b70e8cfd1b933aa6aa63537725c307a50e (diff)
downloadgdb-0649a8891297644c801b0df951be9f7c957c23a1.zip
gdb-0649a8891297644c801b0df951be9f7c957c23a1.tar.gz
gdb-0649a8891297644c801b0df951be9f7c957c23a1.tar.bz2
* archive.cc (Archive::add_symbols): Only look up a symbol without
a version if there is, in fact, a version.
Diffstat (limited to 'gold/archive.cc')
-rw-r--r--gold/archive.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/archive.cc b/gold/archive.cc
index 569a491..011c36d 100644
--- a/gold/archive.cc
+++ b/gold/archive.cc
@@ -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))