From 01676dcd515a65afcc47d3c6f38a71b6830df3c1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 16 May 2008 22:29:04 +0000 Subject: * output.cc (Output_segment::add_output_section): Remove front parameter. * output.h (class Output_segment): Remove add_initial_output_section and overloaded add_output_section. Update declaration of remaining add_output_section. * layout.cc (Layout::create_interp): Call add_output_section rather than add_initial_output_section. (Layout::finish_dynamic_section): Likewise. --- gold/output.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gold/output.cc') diff --git a/gold/output.cc b/gold/output.cc index ce29b53..5459a57 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -2579,8 +2579,7 @@ Output_segment::Output_segment(elfcpp::Elf_Word type, elfcpp::Elf_Word flags) void Output_segment::add_output_section(Output_section* os, - elfcpp::Elf_Word seg_flags, - bool front) + elfcpp::Elf_Word seg_flags) { gold_assert((os->flags() & elfcpp::SHF_ALLOC) != 0); gold_assert(!this->is_max_align_known_); @@ -2615,7 +2614,6 @@ Output_segment::add_output_section(Output_section* os, --p; if ((*p)->is_section_type(elfcpp::SHT_NOTE)) { - // We don't worry about the FRONT parameter. ++p; pdl->insert(p, os); return; @@ -2660,7 +2658,6 @@ Output_segment::add_output_section(Output_section* os, if (insert) { - // We don't worry about the FRONT parameter. ++p; pdl->insert(p, os); return; @@ -2672,10 +2669,7 @@ Output_segment::add_output_section(Output_section* os, // location in the section list. } - if (front) - pdl->push_front(os); - else - pdl->push_back(os); + pdl->push_back(os); } // Remove an Output_section from this segment. It is an error if it -- cgit v1.1