From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: PATCH: 2.15 ELF linker warning section leaking
Date: Fri, 15 Oct 2004 23:43:00 -0000 [thread overview]
Message-ID: <20041015234328.GA8868@lucon.org> (raw)
I got a bug report that 2.15 linker generates bad output under certain
conditions where warning sections leaked into .text output. This patch
seems to fix it. It seems to safe to me. Any comments?
H.J.
---
2004-10-15 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_add_object_symbols): Also clear
_cooked_size for warning sections.
--- bfd/elflink.c.warning 2004-10-14 15:09:58.000000000 -0700
+++ bfd/elflink.c 2004-10-15 16:35:00.835418219 -0700
@@ -3014,6 +3014,7 @@ elf_link_add_object_symbols (bfd *abfd,
/* Clobber the section size so that the warning does
not get copied into the output file. */
s->_raw_size = 0;
+ s->_cooked_size = 0;
}
}
}
next reply other threads:[~2004-10-15 23:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 23:43 H. J. Lu [this message]
2004-10-16 0:45 ` H. J. Lu
2004-10-16 2:57 ` Alan Modra
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=20041015234328.GA8868@lucon.org \
--to=hjl@lucon.org \
--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).