Name
ldd
Synopsis
ldd [options
]file
Solaris and GNU/Linux only. List dynamic dependencies: that is, list shared objects that would be loaded if file were executed. (If a valid file needs no shared objects, ldd succeeds but produces no output.) In addition, ldd’s options can show unresolved symbol references that result from running file.
Options
Specify only one of these options:
-d
,--data-relocs
Check references to data objects only.
-r
,--function-relocs
Check references to data objects and to functions.
Solaris Options
-
-c
Disables the use of configuration files; see crle(1).
-
-e
envar
Set the environment variable envar. Useful for experimenting with environment variables that affect ldd without having to change the global environment.
-
-f
Force checking of nonsecure executables. This option is dangerous if running as a privileged user.
-
-i
Print the execution order of initialization sections.
-
-l
Do immediate processing of any filters, to list all “filtees” and their dependencies.
-
-L
Enable lazy loading.
-
-s
Display the search path for shared object dependencies.
-
-u
Display unused objects. Mutually exclusive with
-U
.-
-U
Display unused objects and dependencies. This is a superset of
-u
and is mutually exclusive with it.-
-v
Display all dependency relationships and version requirements.
GNU/Linux Options
-v
,--verbose
Print all information.
-V
,--version
Display ldd’s version.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.