Cover V03, I01
Article
Figure 1
Figure 10
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Sidebar 1

jan94.tar


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