This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZNSt6vectorISsSaISsEEC1Ev


kamaraju kusumanchi <raju.mailinglists@gmail.com> writes:

> This g++ 4.4.0 20090206 is compiled with GNU ld 2.14 20030612.

2.14 is fairly old.


>> g++ -m64 -B<munge1>/software/myroot/binutils-2.19.1/bin -L<munge1>/software/myroot/binutils-2.19.1/lib a.cpp b.cpp
> /var/tmp//cc4Tw4B3.o(.eh_frame+0x40): relocation truncated to fit:
> R_SPARC_DISP32 .gnu.linkonce.t._ZNSt6vectorISsSaISsEEC1Ev
> collect2: ld returned 1 exit status
>
>
> BTW, is the -B option correct way to specify the location of the linker?

Yes, that should work.  You can confirm by using -Wl,-debug and making
sure that it does indeed run your newly installed linker.

Ian


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