ldd(1)ldd(1)NAMEldd - List dynamic dependencies of executable files or shared objects
SYNOPSISldd [-rdV] filename
Prints warnings for any unresolved data symbol references that would
occur as a result of filename being executed. (Checks references to
only data objects, not functions.) Prints warnings for any unresolved
symbol references that would occur as a result of filename being exe‐
cuted. (Checks references to both data objects and functions.) Dis‐
plays the version of the ldd command.
The ldd command lists the dynamic dependencies of an executable file or
shared object: If filename is an executable file, ldd lists the path‐
names of all shared objects that would be loaded as a result of execut‐
ing filename. If filename is a shared object, ldd lists the pathnames
of all shared objects that would be loaded as a result of loading file‐
name. The ldd command expects shared objects to have execute permis‐
sion, and if this is not the case, it will issue a warning before
attempting to process the file.
The ldd command does not list shared objects explicitly attached by
The ldd command prints the record of shared object pathnames to stdout.
The optional list of symbol resolution problems are printed to stderr.
If filename is not an executable file or a shared object, a non-zero
exit status is returned.
The following command lists the static dependencies of libXm.so: ldd
/usr/shlib/libXm.so The following command lists the static dependencies
of libXm.so as well as any unresolved symbol in libXm.so or any of its
dependents: ldd-r /usr/shlib/libXm.so