From owner-freebsd-current Wed Sep 2 00:13:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01865 for freebsd-current-outgoing; Wed, 2 Sep 1998 00:13:45 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA01859 for ; Wed, 2 Sep 1998 00:13:44 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id AAA09451; Wed, 2 Sep 1998 00:12:43 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp01.primenet.com, id smtpd009443; Wed Sep 2 00:12:39 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id AAA22111; Wed, 2 Sep 1998 00:12:36 -0700 (MST) From: Terry Lambert Message-Id: <199809020712.AAA22111@usr02.primenet.com> Subject: Re: ELF binaries size To: bde@zeta.org.au (Bruce Evans) Date: Wed, 2 Sep 1998 07:12:35 +0000 (GMT) Cc: jdp@polstra.com, reilly@zeta.org.au, current@FreeBSD.ORG In-Reply-To: <199809020214.MAA20550@godzilla.zeta.org.au> from "Bruce Evans" at Sep 2, 98 12:14:40 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >The mapping of the data in the address space is such that the first > >data page is mapped after the last text page. So in the address > >space, it looks like this: > > > > +---+---+---+---+ > >text | | | | : | > > +---+---+---+---+ > > +---+---+---+---+ > >data | : | | | | [ ... ] > I think it implies that elf wastes a full page of memory (the space > between the ':'s above) most of the time (unless the ':'s are on a > page boundary), while aout only wastes an average of half a page > (the space between the text ':' and the end of the page). Actually, it implies that the x86 architecture wastes a full page of memory, by not supportin byte-level protection resoloution. This is not limited to the x86, in fact... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message