Re: Which library contans the malloc object code and what is the name of the main library that C links to?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Lance Taylor wrote:
Ray Hurst <rhurst2@xxxxxxx> writes:

Which library contains the malloc object code?

Normally the C library.

What is the name of the main C library the gcc links to?

libc.  Often named /usr/lib/libc.a and/or /usr/lib/libc.so.

On a GNU/Linux system, the C library is glibc; see
http://sourceware.org/glibc/.

Ian


Thanks for the info. How do I display the contents of libc.a.
I tried ar -t libc.a and malloc did not show up.
However, if I open lib.c with a hex editor I can see that the symbol __malloc exitst is libc.a
Ray


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux