]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright 1995-2000 David Engel (david@ods.com) |
2 | .\" Copyright 1995 Rickard E. Faith (faith@cs.unc.edu) | |
3 | .\" Copyright 2000 Ben Collins (bcollins@debian.org) | |
4 | .\" Redone for GLibc 2.2 | |
5 | .\" Copyright 2000 Jakub Jelinek (jakub@redhat.com) | |
6 | .\" Corrected. | |
7 | .\" Most of this was copied from the README file. | |
8 | .\" Do not restrict distribution. | |
9 | .\" May be distributed under the GNU General Public License | |
05eabe65 | 10 | .TH LDD 1 2000-10-30 "" "Linux Programmer's Manual" |
fea681da MK |
11 | .SH NAME |
12 | ldd \- print shared library dependencies | |
13 | .SH SYNOPSIS | |
d6d1a7c0 | 14 | .BR ldd " [OPTION]... FILE..." |
fea681da MK |
15 | .SH DESCRIPTION |
16 | .B ldd | |
17 | prints the shared libraries required by each program or shared library | |
18 | specified on the command line. | |
19 | .SH OPTIONS | |
20 | .TP | |
9de38bff | 21 | .B \-\-version |
fea681da MK |
22 | Print the version number of |
23 | .BR ldd . | |
24 | .TP | |
25 | .B \-v\ \-\-verbose | |
75b94dc3 MK |
26 | Print all information, including, for example, |
27 | symbol versioning information. | |
fea681da | 28 | .TP |
46672d0d MK |
29 | .B \-u\ \-\-unused |
30 | Print unused direct dependencies. | |
cd38a583 | 31 | (Since glibc 2.3.4.) |
46672d0d | 32 | .TP |
fea681da MK |
33 | .B \-d\ \-\-data\-relocs |
34 | Perform relocations and report any missing objects (ELF only). | |
35 | .TP | |
36 | .B \-r\ \-\-function\-relocs | |
37 | Perform relocations for both data objects and functions, and | |
38 | report any missing objects or functions (ELF only). | |
39 | .TP | |
40 | .B \-\-help | |
41 | Usage information. | |
42 | .SH NOTES | |
43 | The standard version of | |
44 | .B ldd | |
677f4766 MK |
45 | comes with glibc2. |
46 | Libc5 came with an older version, still present | |
ca7b3c18 MK |
47 | on some systems. |
48 | The long options are not supported by the libc5 version. | |
fea681da MK |
49 | On the other hand, the glibc2 version does not support |
50 | .B \-V | |
51 | and only has the equivalent | |
52 | .BR \-\-version . | |
53 | .LP | |
54 | The libc5 version of this program will use the name of a library given | |
f81fb444 | 55 | on the command line as-is when it contains a \(aq/\(aq; otherwise it |
ca7b3c18 MK |
56 | searches for the library in the standard locations. |
57 | To run it | |
fea681da MK |
58 | on a shared library in the current directory, prefix the name with "./". |
59 | .SH BUGS | |
60 | .B ldd | |
61 | does not work on a.out shared libraries. | |
62 | .PP | |
63 | .B ldd | |
64 | does not work with some extremely old a.out programs which were | |
65 | built before | |
66 | .B ldd | |
67 | support was added to the compiler releases. | |
68 | If you use | |
69 | .B ldd | |
70 | on one of these programs, the program will attempt to run with | |
71 | \fIargc\fP = 0 and the results will be unpredictable. | |
72 | .\" .SH AUTHOR | |
73 | .\" David Engel. | |
74 | .\" Roland McGrath and Ulrich Drepper. | |
75 | .SH SEE ALSO | |
76 | .BR ld.so (8), | |
77 | .BR ldconfig (8) |