modifying libgcc.a

Ian Lance Taylor iant@google.com
Fri Jan 23 15:59:00 GMT 2009


Navid Toosizadeh <navid_toosizadeh@yahoo.com> writes:

> When I do "gcc test.program.c -lgcc", it works. Does that mean
> linker does not link the output of gcc with libgcc? Should I seek
> for the problem in gcc or in my linker? (perior to changing libgcc,
> I never needed to use libgcc).

On many systems the default compilation links against -lgcc_s, not
-lgcc.  Use the -v option to see the arguments being passed to the
linker.

Ian



More information about the Gcc-help mailing list