finding out the shared object (dynamically linked libraries) use by a program

10 Jul
2020
10 Jul
'20
2:08 p.m.
Sometime you want to know what .so libraries are used by a program. Let's say that the program's binary is in /bin/prog. $ ldd /bin/prog will do the trick. Except it doesn't capture everything. Sometimes you need to examine the running program. Let's say you wish to find out what process 123 has loaded at this time. $ pmap 123 -p or $ lsof -p 123 (The -p in each command means something different.) In each case, look for lines with the string ".so".
1856
Age (days ago)
1856
Last active (days ago)
0 comments
1 participants
participants (1)
-
D. Hugh Redelmeier