aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-18 21:45:28 +0000
committerIan Lance Taylor <iant@google.com>2007-12-18 21:45:28 +0000
commit0205c1752cf6a2d0c51cc4ea0ebadd480a45350c (patch)
treeb832cde5e37dd40a6b83367e5b36165bbd367af7 /gold
parentab209b3a0dd7a53f2c01ac32c736758bae1d90bb (diff)
downloadgdb-0205c1752cf6a2d0c51cc4ea0ebadd480a45350c.zip
gdb-0205c1752cf6a2d0c51cc4ea0ebadd480a45350c.tar.gz
gdb-0205c1752cf6a2d0c51cc4ea0ebadd480a45350c.tar.bz2
Don't write unattached after_input sections twice.
Diffstat (limited to 'gold')
-rw-r--r--gold/layout.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index ff0425d..45980d5 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);
}