This is the mail archive of the binutils@sources.redhat.com 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]

IA64 unwind section references discarded section


On Thu, Mar 31, 2005 at 05:48:12PM -0800, H. J. Lu wrote:
> On Fri, Apr 01, 2005 at 10:46:59AM +0930, Alan Modra wrote:
> > 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.
> > 
> 
> BTW, The problem is real. The unwind information may not be generated,
> depending on optimization. I am thinking to make linker to discard a
> section if the section pointed to by SHF_LINK_ORDER is discarded. In
> another word, all SHF_LINK_ORDER sections will be treated as a section
> group with the section they are pointed to.
> 

This is the same problem as

http://sourceware.org/ml/binutils/2004-08/msg00187.html
http://sourceware.org/ml/binutils/2004-08/msg00190.html

But this time it is icc, which doesn't use gas. I would like to see a
linker solution.


H.J.


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