|
|
HP-UX Reference Volume 1 of 5 > lldd(1) |
|
NAMEldd — list dynamic dependencies of executable files or shared libraries DESCRIPTIONldd is a command that can list the dynamic dependencies of incomplete executable files or shared libraries. ldd command will work only on 64-bit executables or shared libraries. ldd lists verbose information about dynamic dependencies and symbol references. If the object file is an executable file, ldd will list all shared libraries that would be loaded as a result of executing the file. If it is a shared library, ldd will list 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. EXTERNAL INFLUENCESEnvironment VariablesThe following internationalization variables affect the execution of ldd:
If any internationalization variable contains an invalid setting, ldd behaves as if all internationalization variables are set to C. See environ(5). DIAGNOSTICSldd prints the record of shared library path names to stdout. The optional list of symbol resolution problems are printed to stderr. ldd returns zero when the operation is successful. A non-zero return code indicates that an error occurred. EXAMPLESBy default ldd will print 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.sl => ./libx.sl libc.2 => /lib/pa20_64/libc.2 libdl.1 => /lib/pa20_64/libdl.1 The -v option will cause ldd to print dependency relationship along with the dynamic path information. ldd -v a.out find library=./libx.sl; required by a.out ./libx.sl => ./libx.sl find library=libc.2; required by a.out libc.2 => /lib/pa20_64/libc.2 find library=libdl.1; required by /lib/pa20_64/libc.2 libdl.1 => /lib/pa20_64/libdl.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.sl => ./libx.sl libc.2 => /lib/pa20_64/libc.2 libdl.1 => /lib/pa20_64/libdl.1 symbol not found: val1 (./libx.sl) symbol not found: count (./libx.sl) symbol not found: func1 (./libx.sl) |
|