This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] PR gold/16980: Print unallocated sections in link map


I've committed the following patch to print unallocated (e.g., debug)
sections in the link map.

-cary

2014-06-09  Cary Coutant  <ccoutant@google.com>
    gold/
        PR gold/16980
        * layout.cc (Layout::print_to_mapfile): Print unattached sections in
        map.

diff --git a/gold/layout.cc b/gold/layout.cc
index c5c3b57..82db775 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]