Viewing library dependencies with ldd(1)

The ldd command lists the dynamic dependencies of executable files or shared libraries. The ldd command displays verbose information about dynamic dependencies and symbol references: Executable All shared libraries that are loaded as a result of executing the file. Shared library All shared libraries that are loaded as a result of loading the library. The ldd command uses the same algorithm as the dynamic loader (/usr/lib/dld.sl and /usr/lib/pa20_64/dld.sl) to locate the shared libraries. The ldd command does not list shared libraries explicitly loaded using dlopen(3C) or shl_load(3X). The ldd command prints the record of shared library path names to stdout. It prints the optional list of symbol resolution problems to stderr.

Table 12 optional list of symbol resolution problems to stderr

To do this

Use the option

32-bit mode only: Used in conjunction with -d and/or -r, force dld.sl to bind all dependent

-b

libraries and report unsats. By default the smartbind mechanism in dld.sl only binds

 

libraries whose symbols are explicitly referenced.

 

Check reference to data symbols.

-d

Check reference to data and code symbols.

-r

Display the search path used to locate the shared libraries.

-s

Display all dependency relationships.

-v

Find names of module which refers and defines the symbol.

-y, <symbol>

74 Linker Tools for PA-RISC Systems

Page 74
Image 74
HP UX Software Transition Kit (STK) manual Viewing library dependencies with ldd1