* errors.cc (Errors::undefined_symbol): Mention symbol version if
there is one.
This commit is contained in:
parent
2c38906f72
commit
789aa6de31
@ -1,5 +1,8 @@
|
||||
2008-04-08 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* errors.cc (Errors::undefined_symbol): Mention symbol version if
|
||||
there is one.
|
||||
|
||||
* layout.h (class Layout): Add added_eh_frame_data_ field.
|
||||
* layout.cc (Layout::Layout): Initialize new field.
|
||||
(Layout::layout_eh_frame): Don't add eh_frame_data_ to .eh_frame
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user