Don't create the postprocessing buffer if it already exists.
authorIan Lance Taylor <iant@google.com>
Fri, 4 Jan 2008 05:04:56 +0000 (05:04 +0000)
committerIan Lance Taylor <iant@google.com>
Fri, 4 Jan 2008 05:04:56 +0000 (05:04 +0000)
gold/output.cc

index 8a9e9b3eec798bd076f7049753272e3a70695891..0e28629d53953550d749efa74f7fcf2993a345a9 100644 (file)
@@ -1845,7 +1845,9 @@ void
 Output_section::create_postprocessing_buffer()
 {
   gold_assert(this->requires_postprocessing());
-  gold_assert(this->postprocessing_buffer_ == NULL);
+
+  if (this->postprocessing_buffer_ != NULL)
+    return;
 
   if (!this->input_sections_.empty())
     {