Chromium Code Reviews| Index: gold/layout.h |
| =================================================================== |
| --- a/gold/layout.h |
| +++ b/gold/layout.h |
| @@ -897,6 +897,11 @@ |
| segment_count() const |
| { return this->segment_list_.size(); } |
| + // Return the list of segments. |
| + const Segment_list& |
| + segment_list() const |
| + { return this->segment_list_; } |
| + |
| // Map from section flags to segment flags. |
| static elfcpp::Elf_Word |
| section_flags_to_segment(elfcpp::Elf_Xword flags); |