blob: 20c55784790e865e62c905ff5dd7fe5241b4cc55 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001.\" Copyright 1995-2000 David Engel (david@ods.com)
2.\" Copyright 1995 Rickard E. Faith (faith@cs.unc.edu)
3.\" Most of this was copied from the README file. Do not restrict distribution.
4.\" May be distributed under the GNU General Public License
5.TH LDD 1 "14 March 1998"
6.SH NAME
7ldd \- print shared library dependencies
8.SH SYNOPSIS
9.B ldd
10.RB [ \-vVdr ]
11program|library ...
12.SH DESCRIPTION
13.B ldd
14prints the shared libraries required by each program or shared library
15specified on the command line.
16If a shared library name does not contain a '/',
17.B ldd
18attempts to locate the library in the standard locations.
19To run
20.B ldd
21on a shared library in the current directory, a "./" must be prepended
22to its name.
23.SH OPTIONS
24.TP
25.B \-v
26Print the version number of
27.BR ldd .
28.TP
29.B \-V
30Print the version number of the dynamic linker,
31.BR ld.so .
32.TP
33.B \-d
34Perform relocations and report any missing functions (ELF only).
35.TP
36.B \-r
37Perform relocations for both data objects and functions, and
38report any missing objects (ELF only).
39.SH BUGS
40.B ldd
41does not work very well on libc.so.5 itself.
42.PP
43.B ldd
44does not work on a.out shared libraries.
45.PP
46.B ldd
47does not work with some extremely old a.out programs which were
48built before
49.B ldd
50support was added to the compiler releases.
51If you use
52.B ldd
53on one of these programs, the program will attempt to run with argc = 0 and
54the results will be unpredictable.
55.SH AUTHOR
56David Engel.
57.SH SEE ALSO
58.BR ldconfig (8),
59.BR ld.so (8).