summaryrefslogtreecommitdiff
path: root/gold/errors.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-04-09 00:33:48 +0000
committerIan Lance Taylor <ian@airs.com>2008-04-09 00:33:48 +0000
commite4c3ed604e50ea55e994790d1cff18f7ab025621 (patch)
tree55ded5db53f1647faca70f3ad87b9aad2608fa57 /gold/errors.cc
parentf82a65792bf2800517fa914909836cfa28638e98 (diff)
downloadbinutils-redhat-e4c3ed604e50ea55e994790d1cff18f7ab025621.tar.gz
* errors.cc (Errors::undefined_symbol): Mention symbol version if
there is one.
Diffstat (limited to 'gold/errors.cc')
-rw-r--r--gold/errors.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/gold/errors.cc b/gold/errors.cc
index e352dc4914..c43e9f3e91 100644
--- a/gold/errors.cc
+++ b/gold/errors.cc
@@ -158,9 +158,15 @@ Errors::undefined_symbol(const Symbol* sym,
return;
++this->error_count_;
}
- fprintf(stderr, _("%s: %s: undefined reference to '%s'\n"),
- this->program_name_, relinfo->location(relnum, reloffset).c_str(),
- sym->demangled_name().c_str());
+ const char* const version = sym->version();
+ if (version == NULL)
+ fprintf(stderr, _("%s: %s: undefined reference to '%s'\n"),
+ this->program_name_, relinfo->location(relnum, reloffset).c_str(),
+ sym->demangled_name().c_str());
+ else
+ fprintf(stderr, _("%s: %s: undefined reference to '%s', version '%s'\n"),
+ this->program_name_, relinfo->location(relnum, reloffset).c_str(),
+ sym->demangled_name().c_str(), version);
}
// Issue a debugging message.