xref: /freebsd/usr.bin/ldd/ldd.1 (revision c17d43407fe04133a94055b0dbc7ea8965654a9f)
1.\" $FreeBSD$
2.\"
3.Dd October 22, 1993
4.Dt LDD 1
5.Os
6.Sh NAME
7.Nm ldd
8.Nd list dynamic object dependencies
9.Sh SYNOPSIS
10.Nm
11.Op Fl a
12.Op Fl v
13.Op Fl f Ar format
14.Ar program ...
15.Sh DESCRIPTION
16.Nm
17displays all shared objects that are needed to run the given program or
18to load the given shared object.
19Contrary to
20.Xr nm 1 ,
21the list includes
22.Dq indirect
23dependencies that are the result of needed shared objects which themselves
24depend on yet other shared objects.
25.Pp
26Zero, one or two
27.Fl f
28options may be given.
29The argument is a format string passed to
30.Xr rtld 1
31and allows customization of
32.Nm Ns 's
33output.
34See
35.Xr rtld 1
36for a list of recognized conversion characters.
37.Pp
38The
39.Fl a
40option displays the list of all objects that are needed by each loaded
41object.
42This option does not work with
43.Xr a.out 5
44binaries.
45.Pp
46The
47.Fl v
48option displays an verbose listing of the dynamic linking headers
49encoded in the executable.
50See the source code and include
51files for the definitive meaning of all the fields.
52.Sh SEE ALSO
53.Xr ld 1 ,
54.Xr nm 1 ,
55.Xr rtld 1
56.Sh HISTORY
57A
58.Nm
59utility first appeared in SunOS 4.0, it appeared in its current form in
60.Fx 1.1 .
61.Pp
62The
63.Fl v
64support is based on code written by
65.An John Polstra Aq jdp@polstra.com
66