From: John Kohl <jtk@rational.com>
Subject: Re: Digital Unix equivalents of ldd and truss?
Date: 1999/10/21 [thread overview]
Message-ID: <6cd7u8zli5.fsf@rational.com> (raw)
In-Reply-To: 7un0n1$c9$1@news.is.co.za
andrewg@no.spam.please.bsw.co.za (Andrew Gaylard) writes:
> Is there anything which will show the exact locations of these
> libraries, a la ldd? Is there a tool which can show which libraries a
> running process is using a la Sun's pldd, so I don't have to stop it and
> restart it?
I haven't come across a way to get a run-time library list without
running the program. If you an stand that, then you can do this:
env _RLD_ARGS=-v <run-program>
e.g.:
% env _RLD_ARGS=-v ls
30641:/usr/bin/ls: /sbin/loader: _RLD_ARGS = "-v"
30641:/usr/bin/ls: /sbin/loader: _RLD_ROOT = /
30641:/usr/bin/ls: /sbin/loader: mapped Main at 0x120000000
30641:/usr/bin/ls: /sbin/loader: mapped /usr/shlib/libc.so at 0x3ff80080000
30641:/usr/bin/ls: /sbin/loader: obj /usr/shlib/libc.so CHECKSUM CHANGED
30641:/usr/bin/ls: /sbin/loader: Loader heap at 0x3ffc0008290
<prints out directory listing here>
As for getting a list of libraries in use by a running process, you
might try the lsof package (start at
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/)
It can identify open and mapped files, which should include the shared
libraries.
--
John Kohl <jtk@rational.com>
working for but not speaking for: Rational Software <http:/www.rational.com>
prev parent reply other threads:[~1999-10-21 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-21 4:00 Digital Unix equivalents of ldd and truss? Andrew Gaylard
1999-10-21 4:00 ` Kjell Andresen
1999-10-21 4:00 ` Pit Linnartz
1999-10-22 4:00 ` Andrew Gaylard
1999-10-21 4:00 ` John Kohl [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox