This is the mail archive of the binutils@sourceware.org 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]

Re: Linker Bug or Design Intent (Absolute symbols in zero sized sections)


On Thu, Sep 28, 2006 at 05:42:29PM +0100, Paul Brook wrote:
> On Wednesday 27 September 2006 00:28, Alan Modra wrote:
> > On Tue, Sep 26, 2006 at 12:52:11PM -0400, Paul Koning wrote:
> > > >>>>> "H" == H J Lu <hjl@lucon.org> writes:
> > >
> > >  H> Convert section relative symbol to absolute shouldn't be a problem
> > >  H> in most cases. If we know it may be a problem at link time, we can
> > >  H> keep it section relative.
> > >
> > > But what benefit is there in converting symbols from relative to
> > > absolute?  It seems more logical to leave them alone, always.
> >
> > We are talking about the case where the section defining the symbol
> > is removed from the output.
> 
> If we remove the section shouldn't we also remove the symbol?

I have checked in a patch not to remove an empty section if there is
a symbol relative to it.


H.J.


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