aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@google.com>2008-07-21 23:36:29 +0000
committerCraig Silverstein <csilvers@google.com>2008-07-21 23:36:29 +0000
commit096b02cf4da48783a8945abbbea88d9880559a35 (patch)
tree3f2c5cd1dea949fba85c3a4ade0ebe7e4760d472 /gold
parentcc189afcf837979aa67600a94fd2719128e8f9e3 (diff)
downloadgdb-096b02cf4da48783a8945abbbea88d9880559a35.zip
gdb-096b02cf4da48783a8945abbbea88d9880559a35.tar.gz
gdb-096b02cf4da48783a8945abbbea88d9880559a35.tar.bz2
2008-07-21 Craig Silverstein <csilvers@google.com>
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol): Include symbol version in error message.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/symtab.cc14
2 files changed, 16 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 44642da..297ab894 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-21 Craig Silverstein <csilvers@google.com>
+
+ * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
+ Include symbol version in error message.
+
2008-07-20 Chris Demetriou <cgd@google.com>
* configure.ac (gold_cv_c_random_seed): New configured variable.
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 39a0ec3..a482bfe 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -2376,9 +2376,17 @@ Symbol_table::warn_about_undefined_dynobj_symbol(
// A very ugly cast.
Dynobj* dynobj = static_cast<Dynobj*>(sym->object());
if (!dynobj->has_unknown_needed_entries())
- gold_error(_("%s: undefined reference to '%s'"),
- sym->object()->name().c_str(),
- sym->demangled_name().c_str());
+ {
+ if (sym->version())
+ gold_error(_("%s: undefined reference to '%s', version '%s'"),
+ sym->object()->name().c_str(),
+ sym->demangled_name().c_str(),
+ sym->version());
+ else
+ gold_error(_("%s: undefined reference to '%s'"),
+ sym->object()->name().c_str(),
+ sym->demangled_name().c_str());
+ }
}
}