Fix buglet in last patch.
[deliverable/binutils-gdb.git] / gold / layout.cc
index ff0425d24de8958090c315751ad6592c24487c42..231e2c9f4146875b2516a589608ac940ab08e0bc 100644 (file)
@@ -269,7 +269,7 @@ Layout::layout(Sized_relobj<size, big_endian>* object, unsigned int shndx,
 
   // Canonicalize the section name.
   Stringpool::Key name_key;
-  name = this->namepool_.add_prefix(name, len, &name_key);
+  name = this->namepool_.add_with_length(name, len, true, &name_key);
 
   // Find the output section.  The output section is selected based on
   // the section name, type, and flags.
@@ -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);
 }
 
This page took 0.023912 seconds and 4 git commands to generate.