* [gold commit] PR gold/16980: Print unallocated sections in link map
@ 2014-06-09 20:02 Cary Coutant
0 siblings, 0 replies; only message in thread
From: Cary Coutant @ 2014-06-09 20:02 UTC (permalink / raw)
To: Binutils
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-09 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 20:02 [gold commit] PR gold/16980: Print unallocated sections in link map Cary Coutant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).