Checking A Process's Libraries Using 'ldd'
In order to find out which shared libraries a process is linked with, one may use the 'ldd' command. Here is an example output:
> ldd fvwm
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40014000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40021000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4002c000)
libc.so.6 => /lib/libc.so.6 (0x400cf000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
This shows us which libraries are dynamically linked with the process, and where 'ld.so' will load them from.