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: building binutils on Solaris 9


> Certainly. Sorry for not posting it immediately. Here it is:
>
> Running
> /opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest/cdtest.ex
>p ... c++ -L/opt/builder/toolchain/src/build-binutils/ld -g -O2
> -fno-exceptions -B/opt/builder/toolchain/src/build-binutils/ld/tmpdir/gas/
> -I/opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest -g -O2 

> tmpdir/cdtest.o: In function `Foo::nb_foos()':
> /opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest/cdtest-fo
>o.cc:(.ctors+0x0): relocation truncated to fit: R_SPARC_32 against `.text'
> /opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest/cdtest-fo
>o.cc:(.ctors+0x4): relocation truncated to fit: R_SPARC_32 against `.text'
> /opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest/cdtest-fo
>o.cc:(.dtors+0x0): relocation truncated to fit: R_SPARC_32 against `.text'
> /opt/builder/toolchain/src/binutils-050126/ld/testsuite/ld-cdtest/cdtest-fo
>o.cc:(.dtors+0x4): relocation truncated to fit: R_SPARC_32 against `.text'
> FAIL: cdtest with -Ur

You're very likely trying to link 32-bit code because 'c++' is a 32-bit 
compiler.  You need to configure with CXX=path_to_64_bit_c++_compiler.

> PS. Please do not send me Cc's of mails sent to the list. One copy is
> enough.

That's the usual procedure.  But OK.

-- 
Eric Botcazou


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