191 lines
4.3 KiB
HTML
191 lines
4.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PLDD</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PLDD</H1>
|
|
Section: Linux User Manual (1)<BR>Updated: 2019-08-02<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pldd - display dynamic shared objects linked into a process
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<PRE>
|
|
<B>pldd </B><I>pid</I>
|
|
<B>pldd</B><I> option</I>
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>pldd</B>
|
|
|
|
command displays a list of the dynamic shared objects (DSOs) that are
|
|
linked into the process with the specified process ID (PID).
|
|
The list includes the libraries that have been dynamically loaded using
|
|
<B><A HREF="/cgi-bin/man/man2html?3+dlopen">dlopen</A></B>(3).
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-?</B>, <B>--help</B>
|
|
|
|
<DD>
|
|
Display a help message and exit.
|
|
<DT id="2"><B>--usage</B>
|
|
|
|
<DD>
|
|
Display a short usage message and exit.
|
|
<DT id="3"><B>-V</B>, <B>--version</B>
|
|
|
|
<DD>
|
|
Display program version information and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
On success,
|
|
<B>pldd</B>
|
|
|
|
exits with the status 0.
|
|
If the specified process does not exist,
|
|
the user does not have permission to access
|
|
its dynamic shared object list,
|
|
or no command-line arguments are supplied,
|
|
<B>pldd</B>
|
|
|
|
exists with a status of 1.
|
|
If given an invalid option, it exits with the status 64.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>VERSIONS</H2>
|
|
|
|
<B>pldd</B>
|
|
|
|
is available since glibc 2.15.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
The
|
|
<B>pldd</B>
|
|
|
|
command is not specified by POSIX.1.
|
|
Some other systems
|
|
|
|
have a similar command.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
The command
|
|
<P>
|
|
|
|
|
|
|
|
lsof -p PID
|
|
|
|
|
|
<P>
|
|
|
|
also shows output that includes the dynamic shared objects
|
|
that are linked into a process.
|
|
<P>
|
|
|
|
The
|
|
<B><A HREF="/cgi-bin/man/man2html?1+gdb">gdb</A></B>(1)
|
|
|
|
<I>info shared</I>
|
|
|
|
command also shows the shared libraries being used by a process,
|
|
so that one can obtain similar output to
|
|
<B>pldd</B>
|
|
|
|
using a command such as the following
|
|
(to monitor the process with the specified
|
|
<I>pid</I>):
|
|
|
|
<P>
|
|
|
|
|
|
|
|
$ <B>gdb -ex "set confirm off" -ex "set height 0" -ex "info shared" \</B>
|
|
<BR> <B>-ex "quit" -p $pid | grep '^0x.*0x'</B>
|
|
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
From glibc 2.19 to 2.29,
|
|
<B>pldd</B>
|
|
|
|
was broken: it just hung when executed.
|
|
|
|
This problem was fixed in glibc 2.30, and the fix has been backported
|
|
to earlier glibc versions in some distributions.
|
|
<A NAME="lbAK"> </A>
|
|
<H2>EXAMPLE</H2>
|
|
|
|
|
|
$ <B>echo $$</B> # Display PID of shell
|
|
1143
|
|
$ <B>pldd $$</B> # Display DSOs linked into the shell
|
|
1143: /usr/bin/bash
|
|
linux-vdso.so.1
|
|
/lib64/libtinfo.so.5
|
|
/lib64/libdl.so.2
|
|
/lib64/libc.so.6
|
|
/lib64/ld-linux-x86-64.so.2
|
|
/lib64/libnss_files.so.2
|
|
|
|
<A NAME="lbAL"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ldd">ldd</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+lsof">lsof</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+dlopen">dlopen</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+ld.so">ld.so</A></B>(8)
|
|
|
|
<A NAME="lbAM"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="8"><A HREF="#lbAF">EXIT STATUS</A><DD>
|
|
<DT id="9"><A HREF="#lbAG">VERSIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAH">CONFORMING TO</A><DD>
|
|
<DT id="11"><A HREF="#lbAI">NOTES</A><DD>
|
|
<DT id="12"><A HREF="#lbAJ">BUGS</A><DD>
|
|
<DT id="13"><A HREF="#lbAK">EXAMPLE</A><DD>
|
|
<DT id="14"><A HREF="#lbAL">SEE ALSO</A><DD>
|
|
<DT id="15"><A HREF="#lbAM">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:23 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|