aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-07 07:33:46 +0000
committerIan Lance Taylor <iant@google.com>2008-02-07 07:33:46 +0000
commit516cb3d01efb6f72ffa445ada40003e4e9e8e23a (patch)
tree7d422728cec6c2217ab76106f6c01479e2f2db4a /gold/output.h
parent1ef1f3d387940683bcba12c0bee8c5adfdef4bc7 (diff)
downloadgdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.zip
gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.gz
gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.bz2
Support --oformat binary.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index 7333513..5e68e7c 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -2393,6 +2393,11 @@ class Output_segment
filesz() const
{ return this->filesz_; }
+ // Return the file offset.
+ off_t
+ offset() const
+ { return this->offset_; }
+
// Return the maximum alignment of the Output_data.
uint64_t
maximum_alignment();
@@ -2571,6 +2576,12 @@ class Output_file
public:
Output_file(const char* name);
+ // Indicate that this is a temporary file which should not be
+ // output.
+ void
+ set_is_temporary()
+ { this->is_temporary_ = true; }
+
// Open the output file. FILE_SIZE is the final size of the file.
void
open(off_t file_size);
@@ -2649,6 +2660,8 @@ class Output_file
unsigned char* base_;
// True iff base_ points to a memory buffer rather than an output file.
bool map_is_anonymous_;
+ // True if this is a temporary file which should not be output.
+ bool is_temporary_;
};
} // End namespace gold.