From 38c5e8b493ec72879187ffca3d8533acd2c014a5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 18 Dec 2007 21:24:10 +0000 Subject: Print statistics about merge sections with --stats. --- gold/output.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gold/output.cc') 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) -- cgit v1.1