From: Ian Lance Taylor Date: Tue, 18 Dec 2007 21:45:28 +0000 (+0000) Subject: Don't write unattached after_input sections twice. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0205c1752cf6a2d0c51cc4ea0ebadd480a45350c;p=binutils-gdb.git Don't write unattached after_input sections twice. --- diff --git a/gold/layout.cc b/gold/layout.cc index ff0425d24de..45980d51454 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -2043,14 +2043,6 @@ Layout::write_sections_after_input_sections(Output_file* of) (*p)->write(of); } - for (Section_list::const_iterator p = this->unattached_section_list_.begin(); - p != this->unattached_section_list_.end(); - ++p) - { - if ((*p)->after_input_sections()) - (*p)->write(of); - } - this->section_headers_->write(of); }