Re: dynamic loader behavior question
On Fri, Aug 07, 1998 at 01:55:55PM -0500, David Engel wrote:
> On Fri, Aug 07, 1998 at 12:39:51PM -0400, Steve Dunham wrote:
> > "ldd" will tell you what shared objects are used at load time. I
> > don't know about how to tell whats loaded into a running process. You
> > could probably do it by digging through /proc, if you knew the inode
> > numbers of the libraries, and I believe that gdb has some mechanism of
> > determining this (you could probably attach gdb to the process and ask
> > it what shared objects are loaded.
> cat /proc/<pid>/maps will list everything mmapped into a running
> process, which includes the shared libraries that are loaded. You'll
> need a 2.1.xx kernel or special utility though to get nice filenames
> listed instead of raw device and inode numbers.
What about strace?
brinkmds@flora:~/projects/website$ strace date 2>&1 |grep lib
open("/lib/libcrypt.so.1", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
"Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@
Marcus Brinkmann http://www.debian.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org