This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Xtensa] fix another problem with removal of inconsistent sections


This is a follow-on patch to the one I applied yesterday. Sections being discarded need to have their output_section set to the absolute section. Tested with an xtensa-linux target and committed on the mainline.

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.

Index: emultempl/xtensaelf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/xtensaelf.em,v
retrieving revision 1.13
diff -u -p -r1.13 xtensaelf.em
--- emultempl/xtensaelf.em	25 Jul 2006 00:20:09 -0000	1.13
+++ emultempl/xtensaelf.em	26 Jul 2006 00:07:40 -0000
@@ -1249,6 +1249,7 @@ xtensa_strip_inconsistent_linkonce_secti
 	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;
 	    }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]