public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [Xtensa] fix another problem with removal of inconsistent sections
@ 2006-07-26  0:13 Bob Wilson
  0 siblings, 0 replies; only message in thread
From: Bob Wilson @ 2006-07-26  0:13 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

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.


[-- Attachment #2: ld-linkonce-fix2.diff --]
[-- Type: text/plain, Size: 611 bytes --]

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;
 	    }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-26  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26  0:13 [Xtensa] fix another problem with removal of inconsistent sections Bob Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).