projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ede8013
)
* output.cc (Output_file::resize): Call map_no_anonymous rather
author
Ian Lance Taylor
<ian@airs.com>
Wed, 2 Sep 2009 16:39:06 +0000
(16:39 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Wed, 2 Sep 2009 16:39:06 +0000
(16:39 +0000)
than map.
gold/ChangeLog
patch
|
blob
|
history
gold/output.cc
patch
|
blob
|
history
diff --git
a/gold/ChangeLog
b/gold/ChangeLog
index aae9d2029cb389b58537cc2705ad72e6d350310b..b5174490a4a230c20f6f8605388bc48b92c63150 100644
(file)
--- a/
gold/ChangeLog
+++ b/
gold/ChangeLog
@@
-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".
diff --git
a/gold/output.cc
b/gold/output.cc
index 6a37b4340ee930f2b381d8f35263060f93dcf74b..fd47407052c34fb0f4100019cb52bdf5ea918e40 100644
(file)
--- 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));
}
}