Re: Windows and DLLs



On Sun, Oct 04, 1998 at 07:21:22PM -0400, John Kodis wrote:
> After some poking around, I noticed that Linux (at least the 2.1.120
> release) offers such a mechanism already if the /proc filesystem is
> built into the kernel.
> 
> $ ls -l /proc/self/exe
> lrwx------   1 kodis  kodis   0 Oct  4 19:13 /proc/self/exe-> /bin/ls*
> 
> ... and of course there should be the argv[0] and $PATH fallbacks
> provided for systems that don't offer this feature.

Unless I'm mistaken, it looks like solaris can do it to:


home:~> /usr/proc/bin/pmap 17529
17529:  /usr/local/bin/tcsh
00010000  296K read/exec          /usr/local/bin/tcsh
00069000   40K read/write/exec    /usr/local/bin/tcsh
00073000  220K read/write/exec
00083000  156K     [ heap ]
EF5E0000   28K read/exec          /usr/lib/libw.so.1
EF5F6000    4K read/write/exec    /usr/lib/libw.so.1
EF600000   12K read/exec          /usr/lib/libmp.so.1
EF612000    4K read/write/exec    /usr/lib/libmp.so.1
EF620000   12K read/exec          /usr/lib/libintl.so.1
EF632000    4K read/write/exec    /usr/lib/libintl.so.1
EF640000  508K read/exec          /usr/lib/libc.so.1
EF6CE000   28K read/write/exec    /usr/lib/libc.so.1
EF6D5000    8K read/write/exec
EF700000  388K read/exec          /usr/lib/libnsl.so.1
EF770000   36K read/write/exec    /usr/lib/libnsl.so.1
EF779000   32K read/write/exec
EF790000   52K read/exec          /usr/lib/libsocket.so.1
EF7AC000    8K read/write/exec    /usr/lib/libsocket.so.1
EF7B0000    4K read/exec/shared   /usr/lib/libdl.so.1
EF7C0000    4K read/write/exec
EF7D0000  104K read/exec          /usr/lib/ld.so.1
EF7F9000    8K read/write/exec    /usr/lib/ld.so.1
EFFF6000   40K read/write/exec
EFFF6000   40K     [ stack ]

-- 
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net



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