]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man1/pldd.1
pldd.1, bpf.2, chdir.2, clone.2, fanotify_init.2, fanotify_mark.2, intro.2, ipc.2...
[thirdparty/man-pages.git] / man1 / pldd.1
CommitLineData
f1ed8a80
MK
1.\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
2.\"
3.\" %%%LICENSE_START(VERBATIM)
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
12.\"
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
20.\"
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
23.\" %%%LICENSE_END
24.\"
63121bd4 25.TH PLDD 1 2019-08-02 "GNU" "Linux User Manual"
f1ed8a80
MK
26.SH NAME
27pldd \- display dynamic shared objects linked into a process
28.SH SYNOPSIS
29.nf
dcab219a
MK
30.BI "pldd " "pid"
31.BI pldd " option"
f1ed8a80
MK
32.fi
33.SH DESCRIPTION
34The
35.B pldd
da80c365
BR
36command displays a list of the dynamic shared objects (DSOs) that are
37linked into the process with the specified process ID (PID).
f1ed8a80
MK
38The list includes the libraries that have been dynamically loaded using
39.BR dlopen (3).
40.SH OPTIONS
41.TP
42.BR \-? ", " \-\-help
da80c365 43Display a help message and exit.
f1ed8a80 44.TP
a28b73cd 45.B \-\-usage
da80c365 46Display a short usage message and exit.
f1ed8a80
MK
47.TP
48.BR \-V ", " \-\-version
da80c365 49Display program version information and exit.
f1ed8a80
MK
50.SH EXIT STATUS
51On success,
52.B pldd
53exits with the status 0.
54If the specified process does not exist,
55the user does not have permission to access
56its dynamic shared object list,
57or no command-line arguments are supplied,
58.B pldd
59exists with a status of 1.
60If given an invalid option, it exits with the status 64.
7e57f0e6
MK
61.SH VERSIONS
62.B pldd
63is available since glibc 2.15.
64.SH CONFORMING TO
65The
66.B pldd
67command is not specified by POSIX.1.
68Some other systems
69.\" There are man pages on Solaris and HP-UX.
70have a similar command.
f1ed8a80
MK
71.SH NOTES
72The command
e6154a82
MK
73.PP
74.in +4n
75.EX
76lsof \-p PID
77.EE
78.in
79.PP
f1ed8a80
MK
80also shows output that includes the dynamic shared objects
81that are linked into a process.
2a86152e 82.PP
760fc1e8
MK
83The
84.BR gdb (1)
85.I "info shared"
86command also shows the shared libraries being used by a process,
87so that one can obtain similar output to
a28b73cd 88.B pldd
760fc1e8
MK
89using a command such as the following
90(to monitor the process with the specified
91.IR pid ):
e6154a82 92.PP
760fc1e8 93.in +4n
e6154a82 94.EX
d1a71985 95$ \fBgdb \-ex "set confirm off" \-ex "set height 0" \-ex "info shared" \e\fP
65491453 96 \fB\-ex "quit" \-p $pid | grep '^0x.*0x'\fP
e6154a82 97.EE
6ae1ccd1 98.in
bc911928 99.SH BUGS
d3863db8 100From glibc 2.19 to 2.29,
bc911928 101.B pldd
d3863db8
BR
102was broken: it just hung when executed.
103.\" glibc commit 1a4c27355e146b6d8cc6487b998462c7fdd1048f
fb11d208
MK
104This problem was fixed in glibc 2.30, and the fix has been backported
105to earlier glibc versions in some distributions.
7e57f0e6 106.SH EXAMPLE
b76974c1 107.EX
7e57f0e6
MK
108$ \fBecho $$\fP # Display PID of shell
1091143
110$ \fBpldd $$\fP # Display DSOs linked into the shell
3319789c 1111143: /usr/bin/bash
7e57f0e6
MK
112linux\-vdso.so.1
113/lib64/libtinfo.so.5
114/lib64/libdl.so.2
115/lib64/libc.so.6
116/lib64/ld\-linux\-x86\-64.so.2
117/lib64/libnss_files.so.2
b76974c1 118.EE
f1ed8a80
MK
119.SH SEE ALSO
120.BR ldd (1),
121.BR lsof (1),
122.BR dlopen (3),
123.BR ld.so (8)