From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ada516b9bd836ee9 X-Google-Attributes: gid1164f8,public From: John Kohl Subject: Re: Digital Unix equivalents of ldd and truss? Date: 1999/10/21 Message-ID: <6cd7u8zli5.fsf@rational.com>#1/1 X-Deja-AN: 538917713 X-Us-Snail: Rational Software Corp., 20 Maguire Road, Lexington, MA 02421-3104 Sender: jtk@fructose References: <7un0n1$c9$1@news.is.co.za> Organization: Rational Software Corporation Newsgroups: comp.sys.dec 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 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 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 working for but not speaking for: Rational Software