aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-03-24 18:04:26 +0000
committerIan Lance Taylor <ian@airs.com>2009-03-24 18:04:26 +0000
commit26736d8ec174d5de8d1699ed7b482282d587c270 (patch)
tree76a45d6b609ebd3aee1166f7bfa8c8bdeb83d520 /gold/output.h
parent22fd9730a06b23ad93f31fed3377fcc51f3447df (diff)
downloadgdb-26736d8ec174d5de8d1699ed7b482282d587c270.zip
gdb-26736d8ec174d5de8d1699ed7b482282d587c270.tar.gz
gdb-26736d8ec174d5de8d1699ed7b482282d587c270.tar.bz2
* output.cc (Output_file::map_anonymous): Define.
(Output_file::map): Use map_anonymous. If the regular mmap fails, try an anonymous one. Report the size if the mmap fails. * output.h (class Output_file): Declare map_anonymous.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/output.h b/gold/output.h
index 6c37dfd..5d2c62f 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -3115,10 +3115,14 @@ class Output_file
{ }
private:
- // Map the file into memory and return a pointer to the map.
+ // Map the file into memory.
void
map();
+ // Allocate anonymous memory for the file.
+ void*
+ map_anonymous();
+
// Unmap the file from memory (and flush to disk buffers).
void
unmap();