ldd(1) ldd(1)
NAME
ldd - list dynamic dependencies
SYNOPSIS
ldd [-d | -r] file
DESCRIPTION
The ldd command lists the pathnames of all shared objects that would
be loaded as a result of executing file. If file is a valid executable
but does not require any shared objects, ldd will succeed, producing
no output.
ldd may also be used to check the compatibility of file with the
shared objects it uses. It does this by printing warnings for any
unresolved symbol references that would occur if file were executed.
OPTIONS
-d Causes ldd to check all references to data objects.
-r Causes ldd to check references to both data objects and func-
tions.
EXIT STATUS
ldd prints its record of shared object pathnames to stdout. The
optional list of symbol resolution problems are printed to stderr. If
file is not an executable file or cannot be opened for reading, a
nonzero exit status is returned.
NOTES
ldd doesn't list shared objects explicitly attached via dlopen(3X).
ldd uses the same algorithm as the dynamic linker to locate shared
objects.
SEE ALSO
cc(1), ld(1).
Chapter on "The C compilation system" in the "Guide to Tools for Pro-
gramming in C".
Page 1 Reliant UNIX 5.44 Printed 11/98