Kenwood HP 9000 Personal Computer User Manual


 
Chapter 4 113
Linker Tools
Viewing library dependencies with ldd(1)
Viewing library dependencies with
ldd(1)
NOTE The ldd command works on 64-bit executables or shared libraries.
The ldd(1) command lists the dynamic dependencies of executable files
or shared libraries. ldd displays verbose information about dynamic
dependencies and symbol references:
Executable All shared libraries that would be loaded as a result of
executing the file.
Shared library All shared libraries that would be loaded as a result of
loading the library.
ldd uses the same algorithm as the dynamic loader
(/usr/lib/pa20_64/dld.sl) to locate the shared libraries.
ldd does not list shared libraries explicitly loaded using dlopen(3X) or
shl_load(3X).
ldd prints the record of shared library path names to stdout. It prints
the optional list of symbol resolution problems to stderr.
Examples
By default, ldd prints simple dynamic path information, including
the dependencies recorded in the executable (or the shared library)
followed by the physical location where the dynamic loader finds
these libraries.
To do this
Use the
option
Check reference to data symbols. -d
Check reference to data and code symbols. -r
Displays the search path used to locate the shared
libraries.
-s
Display all dependency relationships. -v