* emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
authorBob Wilson <bob.wilson@acm.org>
Wed, 26 Jul 2006 00:10:26 +0000 (00:10 +0000)
committerBob Wilson <bob.wilson@acm.org>
Wed, 26 Jul 2006 00:10:26 +0000 (00:10 +0000)
Set discarded section's output_section to bfd_abs_section_ptr.

ld/ChangeLog
ld/emultempl/xtensaelf.em

index e1590f5f0da3025ad14a7336ba5b8684c7627084..1535af4a15be175d28183ee0a2030919d516e1b7 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-25  Bob Wilson  <bob.wilson@acm.org>
+
+       * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
+       Set discarded section's output_section to bfd_abs_section_ptr.
+
 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
 
        * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
index 20ac2f2b615c7317ca0fd3e0452b383e8ee118de..1135d27ef01a1653e75170e76a10172fbd5cbeb6 100644 (file)
@@ -1249,6 +1249,7 @@ xtensa_strip_inconsistent_linkonce_sections (lang_statement_list_type *slist)
        case lang_input_section_enum:
          if (is_inconsistent_linkonce_section (s->input_section.section))
            {
+             s->input_section.section->output_section = bfd_abs_section_ptr;
              *s_p = s_next;
              continue;
            }