2014-06-09 10:16:45 +00:00
|
|
|
.\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
|
|
|
|
.\"
|
|
|
|
.\" %%%LICENSE_START(VERBATIM)
|
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of this
|
|
|
|
.\" manual under the conditions for verbatim copying, provided that the
|
|
|
|
.\" entire resulting derived work is distributed under the terms of a
|
|
|
|
.\" permission notice identical to this one.
|
|
|
|
.\"
|
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume no
|
|
|
|
.\" responsibility for errors or omissions, or for damages resulting from
|
|
|
|
.\" the use of the information contained herein. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
|
|
|
.\"
|
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\" %%%LICENSE_END
|
|
|
|
.\"
|
memusage.1, memusagestat.1, pldd.1, accept.2, adjtimex.2, arch_prctl.2, bdflush.2, bpf.2, close.2, epoll_ctl.2, epoll_wait.2, execve.2, execveat.2, fanotify_init.2, fanotify_mark.2, fcntl.2, fsync.2, get_kernel_syms.2, getdomainname.2, getgroups.2, gethostname.2, getrandom.2, getrlimit.2, getrusage.2, getsid.2, getunwind.2, io_getevents.2, ioctl_fat.2, kexec_load.2, killpg.2, listxattr.2, lseek.2, madvise.2, memfd_create.2, mknod.2, mlock.2, modify_ldt.2, msgctl.2, msgget.2, msgop.2, readlink.2, readv.2, reboot.2, recvmmsg.2, rename.2, request_key.2, restart_syscall.2, sched_setaffinity.2, sched_setattr.2, sched_setparam.2, seccomp.2, select_tut.2, semctl.2, semget.2, semop.2, set_thread_area.2, seteuid.2, setgid.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, shmctl.2, shmget.2, shmop.2, sigaction.2, sigprocmask.2, stat.2, symlink.2, syscall.2, sysctl.2, unlink.2, bindresvport.3, byteorder.3, dlopen.3, endian.3, error.3, ffs.3, fmemopen.3, getcwd.3, getlogin.3, getnetent.3, getprotoent.3, getservent.3, getumask.3, getutent.3, glob.3, isalpha.3, lio_listio.3, login.3, mbsinit.3, mbstowcs.3, mbtowc.3, mkstemp.3, nextup.3, ntp_gettime.3, posix_fallocate.3, posix_spawn.3, pthread_join.3, pthread_rwlockattr_setkind_np.3, random.3, rcmd.3, realpath.3, resolver.3, setjmp.3, setnetgrent.3, sigvec.3, strerror.3, strverscmp.3, system.3, toupper.3, towlower.3, towupper.3, wcstombs.3, wordexp.3, cciss.4, loop.4, mouse.4, random.4, core.5, group.5, hosts.5, resolv.conf.5, ascii.7, environ.7, epoll.7, glob.7, ip.7, mq_overview.7, packet.7, pipe.7, raw.7, sched.7, signal.7, socket.7, symlink.7, ld.so.8, sln.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-10-08 10:53:47 +00:00
|
|
|
.TH PLDD 1 2016-10-08 "GNU" "Linux User Manual"
|
2014-06-09 10:16:45 +00:00
|
|
|
.SH NAME
|
|
|
|
pldd \- display dynamic shared objects linked into a process
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
2015-04-18 18:29:39 +00:00
|
|
|
.BI "pldd " "pid"
|
|
|
|
.BI pldd " option"
|
2014-06-09 10:16:45 +00:00
|
|
|
.fi
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The
|
|
|
|
.B pldd
|
2014-10-02 22:01:00 +00:00
|
|
|
command displays a list of the dynamic shared objects that are
|
2014-06-09 10:16:45 +00:00
|
|
|
linked into the process with the specified process ID.
|
|
|
|
The list includes the libraries that have been dynamically loaded using
|
|
|
|
.BR dlopen (3).
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BR \-? ", " \-\-help
|
|
|
|
Display program help message.
|
|
|
|
.TP
|
|
|
|
.BR \-\-usage
|
|
|
|
Display a short usage message.
|
|
|
|
.TP
|
|
|
|
.BR \-V ", " \-\-version
|
|
|
|
Display the program version.
|
|
|
|
.SH EXIT STATUS
|
|
|
|
On success,
|
|
|
|
.B pldd
|
|
|
|
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
|
|
|
|
exists with a status of 1.
|
|
|
|
If given an invalid option, it exits with the status 64.
|
2016-08-07 19:11:00 +00:00
|
|
|
.SH VERSIONS
|
|
|
|
.B pldd
|
|
|
|
is available since glibc 2.15.
|
|
|
|
.SH CONFORMING TO
|
|
|
|
The
|
|
|
|
.B pldd
|
|
|
|
command is not specified by POSIX.1.
|
|
|
|
Some other systems
|
|
|
|
.\" There are man pages on Solaris and HP-UX.
|
|
|
|
have a similar command.
|
2014-06-09 10:16:45 +00:00
|
|
|
.SH NOTES
|
|
|
|
The command
|
|
|
|
|
2016-08-07 15:52:36 +00:00
|
|
|
lsof \-p PID
|
2014-06-09 10:16:45 +00:00
|
|
|
|
|
|
|
also shows output that includes the dynamic shared objects
|
|
|
|
that are linked into a process.
|
2016-08-07 15:54:50 +00:00
|
|
|
|
|
|
|
The
|
|
|
|
.BR gdb (1)
|
|
|
|
.I "info shared"
|
|
|
|
command also shows the shared libraries being used by a process,
|
|
|
|
so that one can obtain similar output to
|
|
|
|
.BR pldd
|
|
|
|
using a command such as the following
|
|
|
|
(to monitor the process with the specified
|
|
|
|
.IR pid ):
|
|
|
|
.in +4n
|
|
|
|
.nf
|
|
|
|
|
|
|
|
$ \fBgdb \-ex "set confirm off" \-ex "set height 0" \-ex "info shared" \\\fP
|
|
|
|
\fB-ex "quit" \-p $pid | grep '^0x.*0x'\fP
|
|
|
|
.fi
|
|
|
|
.in
|
2016-08-02 12:22:12 +00:00
|
|
|
.SH BUGS
|
|
|
|
Since glibc 2.19,
|
|
|
|
.B pldd
|
|
|
|
is broken: it just hangs when executed.
|
2016-10-29 09:53:01 +00:00
|
|
|
.\" FIXME . https://sourceware.org/bugzilla/show_bug.cgi?id=18035
|
2016-08-02 12:22:12 +00:00
|
|
|
It is unclear if it will ever be fixed.
|
2016-08-07 19:11:00 +00:00
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
$ \fBecho $$\fP # Display PID of shell
|
|
|
|
1143
|
|
|
|
$ \fBpldd $$\fP # 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
|
|
|
|
.fi
|
2014-06-09 10:16:45 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ldd (1),
|
|
|
|
.BR lsof (1),
|
|
|
|
.BR dlopen (3),
|
|
|
|
.BR ld.so (8)
|