From: Ian Lance Taylor Date: Wed, 2 Sep 2009 16:39:06 +0000 (+0000) Subject: * output.cc (Output_file::resize): Call map_no_anonymous rather X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdcac5af29801ad6c10fe80a2f1277610f988229;p=binutils-gdb.git * output.cc (Output_file::resize): Call map_no_anonymous rather than map. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index aae9d2029cb..b5174490a4a 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-09-02 Ian Lance Taylor + + * output.cc (Output_file::resize): Call map_no_anonymous rather + than map. + 2009-09-01 Mikolaj Zalewski * gold.cc: Include "incremental.h". diff --git a/gold/output.cc b/gold/output.cc index 6a37b4340ee..fd47407052c 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -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)); } }