aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-18 21:24:10 +0000
committerIan Lance Taylor <iant@google.com>2007-12-18 21:24:10 +0000
commit38c5e8b493ec72879187ffca3d8533acd2c014a5 (patch)
treeda1699c0936f8c22611469fe0bafae8e117a6658 /gold/output.cc
parentcb2dde36a0abb8f59c950187153a245264759fa1 (diff)
downloadfsf-binutils-gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.zip
fsf-binutils-gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.tar.gz
fsf-binutils-gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.tar.bz2
Print statistics about merge sections with --stats.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 5a8cae7..c7fb32d 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -1860,6 +1860,18 @@ Output_section::write_to_postprocessing_buffer()
}
}
+// Print stats for merge sections to stderr.
+
+void
+Output_section::print_merge_stats()
+{
+ Input_section_list::iterator p;
+ for (p = this->input_sections_.begin();
+ p != this->input_sections_.end();
+ ++p)
+ p->print_merge_stats(this->name_);
+}
+
// Output segment methods.
Output_segment::Output_segment(elfcpp::Elf_Word type, elfcpp::Elf_Word flags)