From: Cary Coutant Date: Mon, 9 Jun 2014 19:57:31 +0000 (-0700) Subject: Print unattached sections in the link map. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f89af0abe40c9231f42ad3193a45e8fccb35720;p=binutils-gdb.git Print unattached sections in the link map. gold/ PR gold/16980 * layout.cc (Layout::print_to_mapfile): Print unattached sections in map. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 385fef12cb0..59661a0b759 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2014-06-09 Cary Coutant + + PR gold/16980 + * layout.cc (Layout::print_to_mapfile): Print unattached sections in + map. + 2014-06-07 Alan Modra * powerpc.cc (relocate): Treat field of cmpli insn as a bitfield. diff --git a/gold/layout.cc b/gold/layout.cc index c5c3b578a5a..82db775685f 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -5494,6 +5494,10 @@ Layout::print_to_mapfile(Mapfile* mapfile) const p != this->segment_list_.end(); ++p) (*p)->print_sections_to_mapfile(mapfile); + for (Section_list::const_iterator p = this->unattached_section_list_.begin(); + p != this->unattached_section_list_.end(); + ++p) + (*p)->print_to_mapfile(mapfile); } // Print statistical information to stderr. This is used for --stats.