ldd - List dynamic dependencies of executable files or shared objects
ldd [-rdV] filename
-d 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.)
-r Prints warnings for any unresolved symbol references that would occur
as a result of filename being executed. (Checks references to both data
objects and functions.)
-V Displays the version of the ldd command.
The ldd command lists the dynamic dependencies of an executable file or
+ If filename is an executable file, ldd lists the pathnames of all
shared objects that would be loaded as a result of executing filename.
+ If filename is a shared object, ldd lists the pathnames of all shared
objects that would be loaded as a result of loading filename. The ldd
command expects shared objects to have execute permission, and if this
is not the case, it will issue a warning before attempting to process
The ldd command does not list shared objects explicitly attached by using
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.
1. The following command lists the static dependencies of libXm.so:
2. 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