Shared library linking with external static libraries.

Ian Lance Taylor iant@google.com
Wed Oct 13 13:29:00 GMT 2010


FloofLeBo <bluswedshooz@yahoo.fr> writes:

> Nevertheles a new problem appeared. One of the external libraries i use now
> causes ld to segfault. How can  I debug that ? It's one of the biggest
> external libs I use, and I think I use < 20% of it ...

Certainly a segfault in ld is a bug in ld.  If you can provide the
object, you can report a bug at http://sourceware.org/bugzilla/ .
Otherwise your first step is going to be to run gcc -Wl,-debug
--save-temps to see precisely how ld is being run, and then run ld under
a debugger.  Well, actually, the first step would be to make sure that
you are using the most recent GNU binutils release, in case the bug has
already been fixed.

Ian



More information about the Gcc-help mailing list