Re: Linux 2.2. ELF loader mystery

From: Udo A. Steinberg
Date: Sat Jan 10 2004 - 09:14:41 EST


On Sat, 10 Jan 2004 14:53:29 +0100 Udo A. Steinberg (UAS) wrote:

UAS> results in the following memory map after startup:
UAS>
UAS> 00001000-000a8000 rwxp 00000000 03:07 62988 /tmp/prog
UAS> 000ba000-000bf000 rwxp 000a7000 03:07 62988 /tmp/prog
UAS> bffff000-c0000000 rwxp 00000000 00:00 0

To illustrate my point, below is what the memory map for the exact same
binary looks like on 2.6. The VMA in question is the one between
0xa8000 and 0xba000, which 2.2. kernels don't zero-allocate.

00001000-000a8000 rwxp 00000000 03:07 62988 /tmp/prog
000a8000-000ba000 rwxp 00000000 00:00 0
000ba000-000bf000 rwxp 000a7000 03:07 62988 /tmp/prog
bffff000-c0000000 rwxp 00000000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0

-Udo.

Attachment: pgp00000.pgp
Description: PGP signature