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 linux-vdso.so.


Usage:

ldd [option]... file...






Command Line Options:

--version
Print the version number of ldd.
ldd --version ...
-v
Print all information, including, for example, symbol versioning information.
ldd -v ...
-u
Print unused direct dependencies. (Since glibc 2.3.4.)
ldd -u ...
-d
Perform relocations and report any missing objects (ELF only).
ldd -d ...
-r
Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).
ldd -r ...
--help
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 ...