aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
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/symtab.cc
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/symtab.cc')
-rw-r--r--gold/symtab.cc14
1 files changed, 11 insertions, 3 deletions
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());
+ }
}
}