[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: questions about /proc/<pid>/map
Thank you, John,
Is this "offset of mapping" the last argument to mmap()?
The following is 2 lines from the memory maps of process sshd:
40143000-40166000 r-xp 00000000 08:03 327696
/usr/lib/libglib-1.2.so.0.0.10
40166000-40167000 rw-p 00022000 08:03 327696
/usr/lib/libglib-1.2.so.0.0.10
I guess that the first line is for the code segment and the second
line is for the data. The offset is 0x22000. I used "objdump -h" to
show all the sections of the library. I found no section starting at
0x22000. So what should be at the offset in the file? Or my newbie's
understanding is totally wrong?
Thank you.
Yue
--- John Levon <levon@movementarian.org> wrote:
> On Fri, Oct 04, 2002 at 07:37:08AM -0700, Yue Luo wrote:
>
> > Thank you. But I still don't know what "offset of the mapping"
> means. I
> > was wondering if you could give some more detailed information or a
> > pointer to such information on the web.
> > Thanks.
>
> man mmap
>
> regards
> john
>
> --
> "Me and my friends are so smart, we invented this new kind of art:
> Post-modernist throwing darts"
> - the Moldy Peaches
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/