From: Bob Wilson <bwilson@tensilica.com>
To: binutils@sources.redhat.com
Subject: [Xtensa] fix another problem with removal of inconsistent sections
Date: Wed, 26 Jul 2006 00:13:00 -0000 [thread overview]
Message-ID: <44C6B3BD.2040705@tensilica.com> (raw)
[-- 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;
}
reply other threads:[~2006-07-26 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44C6B3BD.2040705@tensilica.com \
--to=bwilson@tensilica.com \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).