[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dynamic loader behavior question



On Fri, Aug 07, 1998 at 12:39:51PM -0400, Steve Dunham wrote:
> "Geoffrey L. Brimhall" <brimhall@pobox.com> writes:
> > Finally, is there some {program, shell command, system api} that
> > will effectively tell what *.so's are loaded into a process ? Any
> > URL's/manuals that go over this some more ?
> 
> "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.

David
-- 
David Engel
dlengel@home.com


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: