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/layout.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gold/layout.cc') diff --git a/gold/layout.cc b/gold/layout.cc index 71e3ab4..ff0425d 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -2062,6 +2062,11 @@ Layout::print_stats() const this->namepool_.print_stats("section name pool"); this->sympool_.print_stats("output symbol name pool"); this->dynpool_.print_stats("dynamic name pool"); + + for (Section_list::const_iterator p = this->section_list_.begin(); + p != this->section_list_.end(); + ++p) + (*p)->print_merge_stats(); } // Write_sections_task methods. -- cgit v1.1