aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-09-02 16:39:06 +0000
committerIan Lance Taylor <ian@airs.com>2009-09-02 16:39:06 +0000
commitfdcac5af29801ad6c10fe80a2f1277610f988229 (patch)
tree7dd09ba3dbd3f2e83184c32f4bcd5290f55991e9 /gold/output.cc
parentede801325281d5269eec09e86456049cd6f722e4 (diff)
downloadgdb-fdcac5af29801ad6c10fe80a2f1277610f988229.zip
gdb-fdcac5af29801ad6c10fe80a2f1277610f988229.tar.gz
gdb-fdcac5af29801ad6c10fe80a2f1277610f988229.tar.bz2
* output.cc (Output_file::resize): Call map_no_anonymous rather
than map.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 6a37b43..fd47407 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));
}
}