1999-08-28 19:23:38 -04:00
|
|
|
.\" $FreeBSD$
|
|
|
|
|
.\"
|
1993-11-03 18:41:59 -05:00
|
|
|
.Dd October 22, 1993
|
|
|
|
|
.Dt LDD 1
|
2001-07-10 10:16:33 -04:00
|
|
|
.Os
|
1993-11-03 18:41:59 -05:00
|
|
|
.Sh NAME
|
|
|
|
|
.Nm ldd
|
|
|
|
|
.Nd list dynamic object dependencies
|
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 14:21:22 -05:00
|
|
|
.Nm
|
2002-02-17 02:04:32 -05:00
|
|
|
.Op Fl a
|
1996-09-30 22:16:16 -04:00
|
|
|
.Op Fl v
|
1996-11-30 11:12:46 -05:00
|
|
|
.Op Fl f Ar format
|
1996-09-30 21:34:32 -04:00
|
|
|
.Ar program ...
|
1993-11-03 18:41:59 -05:00
|
|
|
.Sh DESCRIPTION
|
2002-04-20 08:18:28 -04:00
|
|
|
The
|
2000-05-10 11:46:27 -04:00
|
|
|
.Nm
|
2002-04-20 08:18:28 -04:00
|
|
|
utility displays all shared objects that are needed to run the given program or
|
2002-02-04 05:33:48 -05:00
|
|
|
to load the given shared object.
|
2000-05-10 11:46:27 -04:00
|
|
|
Contrary to
|
|
|
|
|
.Xr nm 1 ,
|
|
|
|
|
the list includes
|
1993-11-03 18:41:59 -05:00
|
|
|
.Dq indirect
|
1997-08-30 08:22:49 -04:00
|
|
|
dependencies that are the result of needed shared objects which themselves
|
1993-11-03 18:41:59 -05:00
|
|
|
depend on yet other shared objects.
|
1996-09-30 21:34:32 -04:00
|
|
|
.Pp
|
|
|
|
|
Zero, one or two
|
|
|
|
|
.Fl f
|
2000-03-01 07:20:22 -05:00
|
|
|
options may be given.
|
|
|
|
|
The argument is a format string passed to
|
1996-09-30 21:34:32 -04:00
|
|
|
.Xr rtld 1
|
|
|
|
|
and allows customization of
|
2000-05-10 11:46:27 -04:00
|
|
|
.Nm Ns 's
|
2000-03-01 07:20:22 -05:00
|
|
|
output.
|
|
|
|
|
See
|
1996-09-30 21:34:32 -04:00
|
|
|
.Xr rtld 1
|
1997-12-25 04:36:42 -05:00
|
|
|
for a list of recognized conversion characters.
|
1996-09-30 22:16:16 -04:00
|
|
|
.Pp
|
|
|
|
|
The
|
2002-02-17 02:04:32 -05:00
|
|
|
.Fl a
|
|
|
|
|
option displays the list of all objects that are needed by each loaded
|
2002-03-15 10:31:54 -05:00
|
|
|
object.
|
|
|
|
|
This option does not work with
|
2002-02-17 02:04:32 -05:00
|
|
|
.Xr a.out 5
|
|
|
|
|
binaries.
|
|
|
|
|
.Pp
|
|
|
|
|
The
|
1996-09-30 22:16:16 -04:00
|
|
|
.Fl v
|
2002-12-30 16:18:15 -05:00
|
|
|
option displays a verbose listing of the dynamic linking headers
|
2002-03-15 10:31:54 -05:00
|
|
|
encoded in the executable.
|
|
|
|
|
See the source code and include
|
1996-09-30 22:16:16 -04:00
|
|
|
files for the definitive meaning of all the fields.
|
1993-11-03 18:41:59 -05:00
|
|
|
.Sh SEE ALSO
|
|
|
|
|
.Xr ld 1 ,
|
2000-03-28 04:01:04 -05:00
|
|
|
.Xr nm 1 ,
|
|
|
|
|
.Xr rtld 1
|
1993-11-03 18:41:59 -05:00
|
|
|
.Sh HISTORY
|
|
|
|
|
A
|
2000-05-10 11:46:27 -04:00
|
|
|
.Nm
|
|
|
|
|
utility first appeared in SunOS 4.0, it appeared in its current form in
|
|
|
|
|
.Fx 1.1 .
|
1996-09-30 22:16:16 -04:00
|
|
|
.Pp
|
|
|
|
|
The
|
|
|
|
|
.Fl v
|
2000-05-10 11:46:27 -04:00
|
|
|
support is based on code written by
|
|
|
|
|
.An John Polstra Aq jdp@polstra.com
|