From e44fcf3bcf912ddf4ce94f9c3f71c253d473d692 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 12 Oct 2007 05:51:25 +0000 Subject: Add --stats option to print runtime and memory usage statistics. --- gold/layout.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gold/layout.h') 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 -- cgit v1.1