List the shared objects that a program requires (Unix)
ldd program ...
Neutrino
None.
The ldd ("list dynamic dependencies") command lists the shared objects that the specified programs require. If you don't specify the full path for a program, ldd looks for it in your current directory.
You can use this utility to determine which shared objects to include in an OS image; see the Sample Buildfiles appendix in Building Embedded Systems.
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
in your mkifs buildfiles.
$ ldd `which ksh` /bin/ksh: libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000) $ ldd `which gdb` /usr/qnx650/host/qnx6/x86/usr/bin/gdb: libsocket.so.2 => /lib/libsocket.so.2 (0xb8200000) libm.so.2 => /lib/libm.so.2 (0xb822f000) libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000)