All of lore.kernel.org
 help / color / mirror / Atom feed
* Weird output from pmap
@ 2006-09-05  6:55 Erik Niessen
  2006-09-07  4:03 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Niessen @ 2006-09-05  6:55 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

Hi,

I am using an embedded development board with a mips 4kEC on it. I use
buildroot for building a
rootfs and the toolchain.

I cross compiled a helloword app.
When I look at the output of pmap I see the following

/helloworldmips(86)
00400000 (4 KB)        r-xp (00:0a 33243002)   linux/test/helloworldmips
10000000 (4 KB)        rw-p (00:0a 33243002)   linux/test/helloworldmips
10001000 (4 KB)        rwxp (00:00 0)        [heap]
2aaa8000 (20 KB)       r-xp (00:07 1795853)
/lib/ld-uClibc-0.9.27.so<http://uclibc-0.9.27.so/>
2aaad000 (4 KB)        rw-p (00:00 0)
2aaed000 (4 KB)        rw-p (00:07 1795853)  /lib/ld-
uClibc-0.9.27.so<http://uclibc-0.9.27.so/>
2aaee000 (48 KB)       r-xp (00:07 1795861)  /lib/libgcc_s.so.1
2aafa000 (252 KB)      ---p (00:00 0)
2ab39000 (4 KB)        rw-p (00:07 1795861)  /lib/libgcc_s.so.1
2ab3a000 (368 KB)      r-xp (00:07 1795855)  /lib/libuClibc-0.9.27.so
2ab96000 (256 KB)      ---p (00:00 0)
2abd6000 (8 KB)        rw-p (00:07 1795855)  /lib/libuClibc- 0.9.27.so
2abd8000 (16 KB)       rw-p (00:00 0)
7fd49000 (84 KB)       rwxp (00:00 0)        [stack]
mapped:   1076 KB writable/private: 128 KB shared: 0 KB

It seems that the bss segments of the shared libs are protected and mapped
to the zero page. I don't see this
when I run this on a linux pc. I have the following questions:
- Why is this segment protected? Accessing results in a seg fault.
- Why is it so big (252k/256K)?
- How much memory is physically allocated for this segment?

Thanks for reading sofar

Erik Niessen

[-- Attachment #2: Type: text/html, Size: 2770 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-07  7:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05  6:55 Weird output from pmap Erik Niessen
2006-09-07  4:03 ` Ralf Baechle
2006-09-07  7:58   ` Erik Niessen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.