GNU ld fails to link solaris values-Xa.o
Nick Clifton
nickc@redhat.com
Fri Oct 18 11:17:00 GMT 2002
Hi Rüdiger,
> while using a cross compiler I run into this problem:
>
> (Simplified ld command line)
> /usr/local/i386-pc-solaris2.5.1/bin/ld -v
> /usr/local/i386-pc-solaris2.5.1/lib/values-Xa.o
> GNU ld version 2.13
> /usr/local/i386-pc-solaris2.5.1/bin/ld: section .stab.exclstr [00000000 ->
> 0000000d] overlaps section .stab.excl [00000000 -> 00000017]
>
> valuesXa.o is copied from the solaris x86 machine.
This file must be buggy/broken. The problem is that the .stab.exclstr
and .stab.excl sections are supposed to be debug sections, so they
should not have the ALLOC and LOAD flags sets. (They are not needed
in the memory footprint of a running executable). The linker only
checks for overlap in sections that have both of these flags set.
To work around this problem try linking with the:
--no-check-sections
command line switch present.
Cheers
Nick
More information about the Binutils
mailing list