2008-07-21 Craig Silverstein <csilvers@google.com>

* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
	Include symbol version in error message.
This commit is contained in:
Craig Silverstein
2008-07-21 23:36:29 +00:00
parent cc189afcf8
commit 096b02cf4d
2 changed files with 16 additions and 3 deletions

View File

@ -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());
}
}
}