summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man1/ldd.1
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/debian-unstable/man1/ldd.1')
-rw-r--r--upstream/debian-unstable/man1/ldd.132
1 files changed, 20 insertions, 12 deletions
diff --git a/upstream/debian-unstable/man1/ldd.1 b/upstream/debian-unstable/man1/ldd.1
index 1c894def..fd42c4ad 100644
--- a/upstream/debian-unstable/man1/ldd.1
+++ b/upstream/debian-unstable/man1/ldd.1
@@ -8,7 +8,7 @@
.\"
.\" SPDX-License-Identifier: GPL-1.0-or-later
.\"
-.TH ldd 1 2023-02-05 "Linux man-pages 6.05.01"
+.TH ldd 1 2024-05-02 "Linux man-pages 6.8"
.SH NAME
ldd \- print shared object dependencies
.SH SYNOPSIS
@@ -21,7 +21,7 @@ prints the shared objects (shared libraries) required by each program or
shared object specified on the command line.
An example of its use and output
is the following:
-.PP
+.P
.in +4n
.EX
$ \fBldd /bin/ls\fP
@@ -36,7 +36,7 @@ $ \fBldd /bin/ls\fP
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f87e45fa000)
.EE
.in
-.PP
+.P
In the usual case,
.B ldd
invokes the standard dynamic linker (see
@@ -89,7 +89,7 @@ the upstream
.B ldd
implementation did this for example,
although most distributions provided a modified version that did not.)
-.PP
+.P
Thus, you should
.I never
employ
@@ -97,13 +97,13 @@ employ
on an untrusted executable,
since this may result in the execution of arbitrary code.
A safer alternative when dealing with untrusted executables is:
-.PP
+.P
.in +4n
.EX
$ \fBobjdump \-p /path/to/program | grep NEEDED\fP
.EE
.in
-.PP
+.P
Note, however, that this alternative shows only the direct dependencies
of the executable, while
.B ldd
@@ -114,18 +114,26 @@ shows the entire dependency tree of the executable.
Print the version number of
.BR ldd .
.TP
-.BR \-v ", " \-\-verbose
+.B \-\-verbose
+.TQ
+.B \-v
Print all information, including, for example,
symbol versioning information.
.TP
-.BR \-u ", " \-\-unused
+.B \-\-unused
+.TQ
+.B \-u
Print unused direct dependencies.
(Since glibc 2.3.4.)
.TP
-.BR \-d ", " \-\-data\-relocs
+.B \-\-data\-relocs
+.TQ
+.B \-d
Perform relocations and report any missing objects (ELF only).
.TP
-.BR \-r ", " \-\-function\-relocs
+.B \-\-function\-relocs
+.TQ
+.B \-r
Perform relocations for both data objects and functions, and
report any missing objects or functions (ELF only).
.TP
@@ -142,7 +150,7 @@ Usage information.
.\" .B \-V
.\" and only has the equivalent
.\" .BR \-\-version .
-.\" .LP
+.\" .P
.\" The libc5 version of this program will use the name of a library given
.\" on the command line as-is when it contains a \[aq]/\[aq]; otherwise it
.\" searches for the library in the standard locations.
@@ -151,7 +159,7 @@ Usage information.
.SH BUGS
.B ldd
does not work on a.out shared libraries.
-.PP
+.P
.B ldd
does not work with some extremely old a.out programs which were
built before