44a028c369
Formerly the init functions were called in the opposite of the order in which libraries were loaded, and libraries were loaded according to a breadth-first traversal of the dependency graph. That ordering came from SVR4.0, and it was easy to implement but not always sensible. Now we do a depth-first walk over the dependency graph and call the init functions in an order such that each shared object's needed objects are initialized before the shared object itself. At the same time we build a list of finalization (fini) functions in the opposite order, to guarantee correct C++ destructor ordering whenever possible. (It may not be possible if dlopen and dlclose are used in strange ways, but we come as close as one can come.) The need for this renovation has become apparent as more programs have started using multithreading. The multithreaded C library libc_r requires initialization, whereas the standard libc does not. Since virtually every other object depends on the C library, it is important that it get initialized first. |
||
---|---|---|
.. | ||
atrun | ||
bootpd | ||
comsat | ||
fingerd | ||
ftpd | ||
getNAME | ||
getty | ||
mail.local | ||
makekey | ||
mknetid | ||
named-xfer | ||
pppoed | ||
rbootd | ||
revnetgroup | ||
rexecd | ||
rlogind | ||
rpc.rquotad | ||
rpc.rstatd | ||
rpc.rusersd | ||
rpc.rwalld | ||
rpc.sprayd | ||
rshd | ||
rtld-aout | ||
rtld-elf | ||
smrsh | ||
talkd | ||
telnetd | ||
tftpd | ||
uucpd | ||
xtend | ||
ypxfr | ||
Makefile | ||
Makefile.inc |