diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-04-09 00:33:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-04-09 00:33:48 +0000 |
commit | 789aa6de31480d7b322e515b43451b1b1108fedc (patch) | |
tree | c9b16e7a8dbb4951d4f9e3cb21611b49bbc6f039 /gold/errors.cc | |
parent | 2c38906f72b07a9e3b8386d9de8a61b33db04d99 (diff) | |
download | gdb-789aa6de31480d7b322e515b43451b1b1108fedc.zip gdb-789aa6de31480d7b322e515b43451b1b1108fedc.tar.gz gdb-789aa6de31480d7b322e515b43451b1b1108fedc.tar.bz2 |
* errors.cc (Errors::undefined_symbol): Mention symbol version if
there is one.
Diffstat (limited to 'gold/errors.cc')
-rw-r--r-- | gold/errors.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gold/errors.cc b/gold/errors.cc index e352dc4..c43e9f3 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. |