This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld -lgen -ladm causes assert failure in gnu ld 2.12.1 and 2.13 under Solaris 2.7 or 2.8
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: ark at research dot att dot com, jakub at redhat dot com, bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 16:54:38 +0930
- Subject: Re: ld -lgen -ladm causes assert failure in gnu ld 2.12.1 and 2.13 under Solaris 2.7 or 2.8
- References: <200208292039.g7TKdoH13441@europa.research.att.com> <m3ptvaxcyd.fsf@north-pole.nickc.cambridge.redhat.com> <200209191439.g8JEdEL08064@europa.research.att.com> <m3bs6uvt0y.fsf@north-pole.nickc.cambridge.redhat.com> <200209191923.g8JJNTV01948@europa.research.att.com> <m3znudslk4.fsf@north-pole.nickc.cambridge.redhat.com> <20020919234936.A5743@sunsite.ms.mff.cuni.cz> <m3heglrvex.fsf@north-pole.nickc.cambridge.redhat.com>
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.
--
Alan Modra
IBM OzLabs - Linux Technology Centre