* output.cc (Output_file::resize): Call map_no_anonymous rather

than map.
This commit is contained in:
Ian Lance Taylor 2009-09-02 16:39:06 +00:00
parent ede8013252
commit fdcac5af29
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-09-02 Ian Lance Taylor <iant@google.com>
* output.cc (Output_file::resize): Call map_no_anonymous rather
than map.
2009-09-01 Mikolaj Zalewski <mikolajz@google.com>
* gold.cc: Include "incremental.h".

View File

@ -3497,7 +3497,8 @@ Output_file::resize(off_t file_size)
{
this->unmap();
this->file_size_ = file_size;
this->map();
if (!this->map_no_anonymous())
gold_fatal(_("%s: mmap: %s"), this->name_, strerror(errno));
}
}