If one is interested in exploring more about linking and loading here is an excellent paper on shared libs and
dynamic loading:
The Inside story on shared libraries and dynamic loading :http://www.dabeaz.com/papers/CiSE/c5090.pdf
The Inside story on shared libraries and dynamic loading :http://www.dabeaz.com/papers/CiSE/c5090.pdf
The beta site includes the book in draft form, for those with the patience to deal with the occasional typo...