diff options
author | Cary Coutant <ccoutant@google.com> | 2014-06-09 12:57:31 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-06-09 12:58:48 -0700 |
commit | 8f89af0abe40c9231f42ad3193a45e8fccb35720 (patch) | |
tree | 0fa0f94d493707429549c15c08f710253fbec11e /gold/layout.cc | |
parent | dd5d5494f4b899b0411fc62c2041ead9cc5e6a53 (diff) | |
download | gdb-8f89af0abe40c9231f42ad3193a45e8fccb35720.zip gdb-8f89af0abe40c9231f42ad3193a45e8fccb35720.tar.gz gdb-8f89af0abe40c9231f42ad3193a45e8fccb35720.tar.bz2 |
Print unattached sections in the link map.
gold/
PR gold/16980
* layout.cc (Layout::print_to_mapfile): Print unattached sections in
map.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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. |