aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-12 05:51:25 +0000
committerIan Lance Taylor <iant@google.com>2007-10-12 05:51:25 +0000
commite44fcf3bcf912ddf4ce94f9c3f71c253d473d692 (patch)
tree3f5de3fdbbc7b5ba332f8d2123f017c2e8437ce6 /gold/layout.h
parent6ca8706da5d2154ee86544024f708fda30efba26 (diff)
downloadfsf-binutils-gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.zip
fsf-binutils-gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.gz
fsf-binutils-gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.bz2
Add --stats option to print runtime and memory usage statistics.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 90cc22b..441be94 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -137,6 +137,11 @@ class Layout
off_t
finalize(const Input_objects*, Symbol_table*);
+ // Return the size of the output file.
+ off_t
+ output_file_size() const
+ { return this->output_file_size_; }
+
// Return the TLS segment. This will return NULL if there isn't
// one.
Output_segment*
@@ -368,6 +373,8 @@ class Layout
Output_data_dynamic* dynamic_data_;
// The exception frame section.
Output_section* eh_frame_section_;
+ // The size of the output file.
+ off_t output_file_size_;
};
// This task handles writing out data which is not part of a section