Connecting Tech Pros Worldwide Forums | Help | Site Map

shared library in running process

Newbie
 
Join Date: Aug 2008
Posts: 29
#1: Oct 6 '08
Hi

My program is running, how can i check what are the shared library it has loaded.
Actually, i want to check whether a particular shared library has been loaded or not. How do i do that.

Thanks in advance.
Regards,
Ashok

ashitpro's Avatar
Expert
 
Join Date: Aug 2007
Posts: 389
#2: Oct 7 '08

re: shared library in running process


I don't know how to check loaded libraries by running program,
But I can tell you the way to get all shared libraries on which the particular program is depend.
You can use ldd command to achieve this...
Even if you find that out of say 10 libraries(output of ldd) 3 libraries have been loaded, it's not guaranteed that target program is really using it. It may have done it's work but still it is loaded in memory. More or less its just a function call for which binary is depending on shared library..
Reply