* descriptors.cc (Descriptors::open): Report correct name in error

message.
This commit is contained in:
Ian Lance Taylor 2010-07-14 10:38:59 +00:00
parent a7b16ceb92
commit 783659f926
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-07-14 Ian Lance Taylor <iant@google.com>
* descriptors.cc (Descriptors::open): Report correct name in error
message.
2010-07-13 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_input_section::Arm_input_section): For a

View File

@ -113,8 +113,7 @@ Descriptors::open(int descriptor, const char* name, int flags, int mode)
{
Hold_lock hl(*this->lock_);
gold_error(_("file %s was removed during the link"),
this->open_descriptors_[descriptor].name);
gold_error(_("file %s was removed during the link"), name);
}
errno = ENOENT;