this link  points to a excellent tutorial on how to create, modify and hack with static and dynamic libraries on linux!
For those who don’t know what is a dynamic/static library the tuto explains with step-by-step examples how to start with the code and finish with a dynamic shared library.
It also helps to understand how the linux library system works! Its a great tuto, hope you enjoy it as mine.
c u soon.