How to see the currently loaded shared objects in Linux?
Solution 1:
You can do both with lsof
. To see what processes have a library open or mapped do:
lsof /path/to/lib.so
and to see what files (including shared libraries) a process has open and/or mapped, do:
lsof -p <pid>
Solution 2:
Another way to see what's loaded in a process is by looking at the /proc/PID/maps
file. This shows everything mapped into your address space, including shared objects mapped in.