The kernel and the C library as a single project
The kernel and the C library as a single project
Posted Dec 1, 2010 16:27 UTC (Wed) by nix (subscriber, #2304)In reply to: The kernel and the C library as a single project by sfeam
Parent article: The kernel and the C library as a single project
Uh, you can't make libc a kernel module. It is both a userspace program and contains a component (ld-linux.so.2, the dynamic loader) whose absolute filename is wired into every dynamically linked binary on the entire system.
I suppose you could perhaps have a scheme where the kernel reads a PT_INTERP of '/lib/ld-linux.so.2' and looks for /lib/lds/{kernel version}/ld-linux.so.2 first, but I suspect this would have trouble getting upstream, because one extra path lookup per exec() is quite a cost.
