bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld -lgen -ladm causes assert failure in gnu ld 2.12.1 and 2.13 under


From: Jakub Jelinek
Subject: Re: ld -lgen -ladm causes assert failure in gnu ld 2.12.1 and 2.13 under Solaris 2.7 or 2.8
Date: Fri, 20 Sep 2002 11:53:42 +0200
User-agent: Mutt/1.2.5.1i

On Fri, Sep 20, 2002 at 04:54:38PM +0930, Alan Modra wrote:
> On Fri, Sep 20, 2002 at 08:07:34AM +0100, Nick Clifton wrote:
> > Andrew: if you add -znocombreloc to the linker command line then you
> > get a working dyn.so binary.  I would suggest adding
> > -Wl,-znocombreloc to the SHFLAGS variable in your shell script.
> > 
> > Of course this does not fix the problem, but it does mean that
> > binutils 2.13 can now be used with Solaris 2.7 and 2.8.
> 
> The interesting question is whether this is a bug in solaris ld.so,
> or in binutils.  If it's ld.so, then I suppose we ought to default
> to -znocombreloc on solaris.

Yeah.
Interesting thing to try would be to wipe out the DT_RELACOUNT dynamic tag
(say in hex editor or using libelf) and see whether it works.
I think I remember Solaris ld.so was unsure whether DT_RELACOUNT is R_*_RELATIVE
relocs from start of .rela.dyn or from end of that section. Older versions
did it the latter way newer the right (former) way.
Maybe they even have patches to fix ld.so, somebody with Solaris
should check.

        Jakub




reply via email to

[Prev in Thread] Current Thread [Next in Thread]