My question is whether Linux kernel contains libc.so.6
? After googling and going through different links, we found that libc.so.6
, is not a part of Linux kernel, as the kernel has same libraries implemented for its own use in kernel space. libc.so.6
is a userspace library. But, still, the question was left, if the libc.so.6 is removed from "/lib", it crashes, as all the basic applications of Linux crashes.
So, the basic questions were left on:
libc.so.6
? If yes, where such implementation is used?libc.so.6
? Is it provided by Linux distributions only?Can Linux run without libc.so.6? If yes, where is this the case?
Compiling the code with option -nostdlib
won't use standard libraries,
man GCC tells,
-nostdlib Do not use the standard system startup files or libraries when linking. No startup files and only the libraries you specify will be passed to the linker. The compiler may generate calls to memcmp, memset, memcpy and memmove. These entries are usually resolved by entries in libc. These entry points should be supplied through some other mechanism when this option is specified.
Check webpage for good glibc free implementation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With