This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Reject sh_link pointing to discarded section
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 1 Apr 2005 10:46:59 +0930
- Subject: Re: PATCH: Reject sh_link pointing to discarded section
- References: <20050401002906.GA12665@lucon.org>
On Thu, Mar 31, 2005 at 04:29:06PM -0800, H. J. Lu wrote:
> I got 2 ia64 .o files with the same linkonce text section, one with
> unwind section and the other without. I think the one without unwind
> section is bad. When linker sees the one without unwind section first,
> the linkonce text section in the other one will be discarded. But
> its unwind section still points to the discarded section and linker
> will crash when trying to set sh_link. This patch will try to use the
> kept section if they have the same size, otherwise, reject it.
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre