This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU ld fails to link solaris values-Xa.o


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]