This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GNU ld fails to link solaris values-Xa.o
- From: Nick Clifton <nickc at redhat dot com>
- To: "Dehmel, Rüdiger" <de at lmnet dot de>
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Date: 18 Oct 2002 19:18:52 +0100
- Subject: Re: GNU ld fails to link solaris values-Xa.o
- References: <A6E475D77D25D311AD91005004066440721415@exserver.buero.lmnet.de>
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