Figure 6: Finding the dynamic library dependencies
SunOS
$ ldd /bin/ls
-lc.1 => /usr/lib/libc.so.1.8
-ldl.1 => /usr/lib/libdl.so.1.0
$ ldd /usr/etc/in.ftpd
-lc.1 => /usr/lib/libc.so.1.8
-ldl.1 => /usr/lib/libdl.so.1.0
SVR4
$ ldd /bin/ls
dynamic linker: /bin/ls: file loaded: /usr/lib/libc.so.1
$ ldd /usr/sbin/in.fptd
dynamic linker: /usr/sbin/in.ftpd: file loaded: /usr/lib/libnsl.so
dynamic linker: /usr/sbin/in.ftpd: file loaded: /usr/lib/libsocket.so
dynamic linker: /usr/sbin/in.ftpd: file loaded: /usr/lib/libc.so.1
SVR3
$ dump -Lv /etc/ls
***TARGET SHARED LIBRARY INFORMATION***
/bin/ls:
/shlib/libc_s
$ dump -Lv /etc/ftpd
***TARGET SHARED LIBRARY INFORMATION***
/etc/ftpd:
/shlib/libc_s
|