This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EXTERN command


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]