relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZNSt6vectorISsSaISsEEC1Ev

Ian Lance Taylor
Tue Apr 7 16:42:00 GMT 2009

kamaraju kusumanchi <> writes:

> Very weird. Even after specifying the new linker using -B, -L options,
> the g++ is still linking the object files with the old linker.

It's because of this configure option:


It turns out that that overrides the path search for the linker.  -B
affects the path search.

It looks like if you configure using --with-ld, and that executable
exists, then it will always be used.  There doesn't seem to be a way to
override it.


More information about the Gcc-help mailing list