Hi experts,
I was trying to get more information on the shared objets in linux and digged in more ending up with couple of questions :
For example :
Lets say I am creating a shared object say, libfoo.so . The gcc option to create the shared object is as below :
$gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0 *.o
Here we are passing the shared object name libfoo.so.1 to the gcc compiler . I know that ldconfig will create the symbolic link for the -soname ....
my question is :
+ how does the ldconfig know to create the symbolic link say libfoo.so.1 --> libfoo.so.1.0?
+ will the information to create the symbolic link is stored in the libfoo.so.1.0 library? so , when you run the ldconfig it knows that the symbolic link to be created for libfoo.so.1 soname ?
Please explain me in detail. Please do not refer any URL.. I've already done lot of google work ....