EXTERN command

Ian Lance Taylor iant@google.com
Mon Feb 28 21:12:00 GMT 2011


ali hagigat <hagigatali@gmail.com> writes:

> When i write:
> gcc -lc ....
> I expect libc.a is linked with my program. Does GNU ld selects some
> object files from libc.a and link them with my program? or the whole
> archive will be linked?

Try it and see what happens.

Note that -lc can link against libc.so as well as libc.a.

Ian



More information about the Binutils mailing list