From: Bob Wilson Date: Wed, 26 Jul 2006 00:10:26 +0000 (+0000) Subject: * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2f2897591c8e4a29868fa8fcc4a50a0e163b273;p=binutils-gdb.git * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections): Set discarded section's output_section to bfd_abs_section_ptr. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index e1590f5f0da..1535af4a15b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-07-25 Bob Wilson + + * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections): + Set discarded section's output_section to bfd_abs_section_ptr. + 2006-07-26 Alan Modra * ldlang.c (analyze_walk_wild_section_handler): Init handler_data diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em index 20ac2f2b615..1135d27ef01 100644 --- a/ld/emultempl/xtensaelf.em +++ b/ld/emultempl/xtensaelf.em @@ -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; }