ldd_ia.1 (2012 03)
l
ldd_ia(1)
Integrity Systems Only
ldd_ia(1)
EXAMPLES
By default ldd prints a simple dynamic path information. This consists of the dependencies recorded in
the executable (or the shared library) followed by the physical location where these libraries are found.
ldd a.out
./libx.so => ./libx.so
libc.so => /usr/lib/hpux32/libc.so.1
libdl.so => /usr/lib/hpux32/libdl.so.1
The -v option causes ldd to print dependency relationship along with the dynamic path information.
ldd -v a.out
find library=./libx.so; required by a.out
./libx.so => ./libx.so
find library=libc.so; required by a.out
libc.so => /usr/lib/hpux32/libc.so.1
find library=libdl.so; required by /usr/lib/hpux32/libc.so.1
libdl.so => /usr/lib/hpux32/libdl.so..1
The -r option to ldd causes it to analyze all symbol references and print information about unsatisfied
code and data symbols.
ldd -r a.out
./libx.so => ./libx.so
libc.so => /usr/lib/hpux32/libc.so.1
libdl.so => /usr/lib/hpux32/libdl.so.1
symbol not found: val1 (./libx.so)
symbol not found: count (./libx.so)
symbol not found: func1 (./libx.so)
WARNINGS
ldd does not list shared libraries explicitly loaded using dlopen (3C) or shl_load (3X).
FILES
a.out output file
/usr/lib/hpux32/dld.so
32-bit Integrity system dynamic loader
/usr/lib/hpux64/dld.so
64-bit Integrity system dynamic loader
/usr/ccs/lib/hpux32/lddstub
32-bit dummy executable loaded to check the dependencies
of shared libraries
/usr/ccs/lib/hpux64/lddstub
64-bit dummy executable loaded to check the dependencies
of shared libraries
/usr/lib/nls/msg/$LANG/ldd.cat
message catalog
SEE ALSO
System Tools
ld(1) invoke the link editor
Miscellaneous
a.out (4) assembler, compiler, and linker output
dld.so (5) dynamic loader
Texts and Tutorials
HP-UX Linker and Libraries User’s Guide
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: March 2012