2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright 1995-2000 David Engel (david@ods.com)
|
|
|
|
.\" Copyright 1995 Rickard E. Faith (faith@cs.unc.edu)
|
|
|
|
.\" Copyright 2000 Ben Collins (bcollins@debian.org)
|
|
|
|
.\" Redone for GLibc 2.2
|
|
|
|
.\" Copyright 2000 Jakub Jelinek (jakub@redhat.com)
|
|
|
|
.\" Corrected.
|
|
|
|
.\" Most of this was copied from the README file.
|
|
|
|
.\" Do not restrict distribution.
|
|
|
|
.\" May be distributed under the GNU General Public License
|
2007-05-18 09:21:38 +00:00
|
|
|
.TH LDD 1 2000-10-30 "" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
|
|
|
ldd \- print shared library dependencies
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ldd
|
|
|
|
.RB [OPTION]...
|
|
|
|
FILE...
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B ldd
|
|
|
|
prints the shared libraries required by each program or shared library
|
|
|
|
specified on the command line.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2005-10-04 12:49:58 +00:00
|
|
|
.B \-\-version
|
2004-11-03 13:51:07 +00:00
|
|
|
Print the version number of
|
|
|
|
.BR ldd .
|
|
|
|
.TP
|
|
|
|
.B \-v\ \-\-verbose
|
|
|
|
Print all information, including e.g. symbol versioning information.
|
|
|
|
.TP
|
2006-07-12 10:41:40 +00:00
|
|
|
.B \-u\ \-\-unused
|
|
|
|
Print unused direct dependencies.
|
2006-09-18 11:46:25 +00:00
|
|
|
(Since glibc 2.3.4.)
|
2006-07-12 10:41:40 +00:00
|
|
|
.TP
|
2004-11-03 13:51:07 +00:00
|
|
|
.B \-d\ \-\-data\-relocs
|
|
|
|
Perform relocations and report any missing objects (ELF only).
|
|
|
|
.TP
|
|
|
|
.B \-r\ \-\-function\-relocs
|
|
|
|
Perform relocations for both data objects and functions, and
|
|
|
|
report any missing objects or functions (ELF only).
|
|
|
|
.TP
|
|
|
|
.B \-\-help
|
|
|
|
Usage information.
|
|
|
|
.SH NOTES
|
|
|
|
The standard version of
|
|
|
|
.B ldd
|
|
|
|
comes with glibc2. Libc5 came with an older version, still present
|
|
|
|
on some systems. The long options are not supported by the libc5 version.
|
|
|
|
On the other hand, the glibc2 version does not support
|
|
|
|
.B \-V
|
|
|
|
and only has the equivalent
|
|
|
|
.BR \-\-version .
|
|
|
|
.LP
|
|
|
|
The libc5 version of this program will use the name of a library given
|
|
|
|
on the command line as-is when it contains a '/'; otherwise it
|
|
|
|
searches for the library in the standard locations. To run it
|
|
|
|
on a shared library in the current directory, prefix the name with "./".
|
|
|
|
.SH BUGS
|
|
|
|
.B ldd
|
|
|
|
does not work on a.out shared libraries.
|
|
|
|
.PP
|
|
|
|
.B ldd
|
|
|
|
does not work with some extremely old a.out programs which were
|
|
|
|
built before
|
|
|
|
.B ldd
|
|
|
|
support was added to the compiler releases.
|
|
|
|
If you use
|
|
|
|
.B ldd
|
|
|
|
on one of these programs, the program will attempt to run with
|
|
|
|
\fIargc\fP = 0 and the results will be unpredictable.
|
|
|
|
.\" .SH AUTHOR
|
|
|
|
.\" David Engel.
|
|
|
|
.\" Roland McGrath and Ulrich Drepper.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ld.so (8),
|
|
|
|
.BR ldconfig (8)
|