2008-07-21 Craig Silverstein <csilvers@google.com>
authorCraig Silverstein <csilvers@google.com>
Mon, 21 Jul 2008 23:36:29 +0000 (23:36 +0000)
committerCraig Silverstein <csilvers@google.com>
Mon, 21 Jul 2008 23:36:29 +0000 (23:36 +0000)
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Include symbol version in error message.

gold/ChangeLog
gold/symtab.cc

index 44642daa302812e8a04b99ebf437c19dae4a1376..297ab894fa0c77fd338045908bed1e47064286ff 100644 (file)
@@ -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.
index 39a0ec3f8de67277593f6f6423947ecfd45cef40..a482bfeee1918764605590c3b3f22048440a0838 100644 (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());
+        }
     }
 }