Linux "ldd" Command Line Options and Examples
print shared object dependencies

ldd prints the shared objects (shared libraries) required by each program or shared object specified on the command line. An example of its use and output is the following: $ ldd /bin/ls


ldd [option]... file...

Command Line Options:

Print the version number of ldd.
ldd --version ...
Print all information, including, for example, symbol versioning information.
ldd -v ...
Print unused direct dependencies. (Since glibc 2.3.4.)
ldd -u ...
Perform relocations and report any missing objects (ELF only).
ldd -d ...
Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).
ldd -r ...
BUGSldd does not work on a.out shared libraries.ldd does not work with some extremely old a.out programs which were built before ldd support was added to the compiler releases. Ifyou use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable.
ldd --help ...