On Tue, 2002-02-26 at 09:10, Lambert Duijst wrote: > Is glibc normally dynamically linked ? (I guess it is?) and if so what is the > part of ld.so in this ? > Is ld.so an executable or is it a library ?
Yes, glibc is usually linked dynamically. Ld.so is the program interpreter, also known as the dynamic linker. It's responsible for starting up a program that uses shared libraries and making sure that all the necessary objects are loaded. With ELF the line between executables and libraries is a bit blurry. Libc and ld.so can both be invoked as executables, but they are also shared objects. > If I want to execute an executable that is dynamically linked to a library > (say glibc) and I call execve to have this file executed, what are the steps > that the kernel makes , and how does it interact with ld.so ? ELF systems do all the dynamic linking in user space: there is no equivalent to the old "uselib" system call. The kernel just loads the executable and its program interpreter into memory and passes control to the latter. > P.S: Normally I would have sent a mail like this to the newbie list, but as I > see in the archives that the last mails are from about december 2001 I don't > think that there is much activity there. That doesn't necessarily mean that nobody is subscribed to the list. You can still post your questions there if you want. p. _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm http://www.arm.linux.org.uk/armlinux/mailinglists.php Please visit the above addresses for information on this list.
