Print unattached sections in the link map.
authorCary Coutant <ccoutant@google.com>
Mon, 9 Jun 2014 19:57:31 +0000 (12:57 -0700)
committerCary Coutant <ccoutant@google.com>
Mon, 9 Jun 2014 19:58:48 +0000 (12:58 -0700)
gold/
PR gold/16980
* layout.cc (Layout::print_to_mapfile): Print unattached sections in
map.

gold/ChangeLog
gold/layout.cc

index 385fef12cb0cf502dbb07e0fbcced824b3084890..59661a0b759dbfa44c5e28fa283008176c2cf499 100644 (file)
@@ -1,3 +1,9 @@
+2014-06-09  Cary Coutant  <ccoutant@google.com>
+
+       PR gold/16980
+       * layout.cc (Layout::print_to_mapfile): Print unattached sections in
+       map.
+
 2014-06-07  Alan Modra  <amodra@gmail.com>
 
        * powerpc.cc (relocate): Treat field of cmpli insn as a bitfield.
index c5c3b578a5ad1164d34b809059a390a69ce46167..82db775685fccb791c295eebd6e7e206a7543d2a 100644 (file)
@@ -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.
This page took 0.033881 seconds and 4 git commands to generate.