From 096b02cf4da48783a8945abbbea88d9880559a35 Mon Sep 17 00:00:00 2001 From: Craig Silverstein Date: Mon, 21 Jul 2008 23:36:29 +0000 Subject: [PATCH] 2008-07-21 Craig Silverstein * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol): Include symbol version in error message. --- gold/ChangeLog | 5 +++++ gold/symtab.cc | 14 +++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 44642daa302..297ab894fa0 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2008-07-21 Craig Silverstein + + * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol): + Include symbol version in error message. + 2008-07-20 Chris Demetriou * configure.ac (gold_cv_c_random_seed): New configured variable. diff --git a/gold/symtab.cc b/gold/symtab.cc index 39a0ec3f8de..a482bfeee19 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(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()); + } } } -- 2.30.2