Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 1997 15:29:20 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-hackers@FreeBSD.org, jdp@polstra.com
Subject:   Re: Commerical applications (was: Development and validation
Message-ID:  <199701220429.PAA01813@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I realized later that this is not true.  ELF double-maps the page
>containing the boundary between text and data.  That wastes a page
>(4K), making ELF's memory usage in execution the same on average
>as that of a.out.

Isn't this just wasteful on (flat model) i386's?  It provides no
protection against writing the text in the boundary page via the data
mapping, and isn't necessary for execution because the i386 doesn't have
an execution bit in its page tables.  Protection can only be provided
by starting the data segment at the boundary, but this would break many
(broken) programs that assume that text pointers are interchangeable
with data pointers, and doesn't require double mapping anyway.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701220429.PAA01813>