ld -lgen -ladm causes assert failure in gnu ld 2.12.1 and 2.13 under Solaris 2.7 or 2.8

Nick Clifton nickc@redhat.com
Fri Sep 20 00:58:00 GMT 2002


Hi Jakub,

> That's because of -zcombreloc (now the default).
> All SHF_ALLOC .rela.* sections but .rela.plt are merged into .rela.dyn and
> sorted for faster runtime lookup.

Thanks for the tip.  This turns out to be a workaround to stop the
bug.

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.

Cheers
        Nick



More information about the Binutils mailing list