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

Ian Lance Taylor iant@google.com
Tue Apr 7 16:42:00 GMT 2009


kamaraju kusumanchi <raju.mailinglists@gmail.com> 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:

--with-ld=<munge2>/bin/ld

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.

Ian



More information about the Gcc-help mailing list