United States-English |
|
|
HP-UX Reference > Lldd_ia(1)Integrity Systems OnlyHP-UX 11i Version 3: February 2007 |
|
NAMEldd_ia: ldd — list dynamic dependencies of executable files or shared libraries on Integrity systems DESCRIPTIONldd is a command that can list the dynamic dependencies of incomplete executable files or shared libraries. ldd lists verbose information about dynamic dependencies and symbol references. If the object file is an executable file, ldd lists all shared libraries that would be loaded as a result of executing the file. If it is a shared library, ldd lists 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/hpux32/dld.so and /usr/lib/hpux64/dld.so) to locate the shared libraries at runtime. See "Dynamic Path List" in dld.so(5) for more information. EXTERNAL INFLUENCESEnvironment Variablesldd uses the following environment variables to locate shared libraries.
The 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 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) FILES
|
Printable version | ||
|