From owner-freebsd-current Tue Sep 1 18:32:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA08308 for freebsd-current-outgoing; Tue, 1 Sep 1998 18:32:26 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08296 for ; Tue, 1 Sep 1998 18:32:24 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id SAA02547; Tue, 1 Sep 1998 18:28:14 GMT (envelope-from mike@dingo.cdrom.com) Message-Id: <199809011828.SAA02547@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: John Polstra cc: Mike Smith , "Andrew Reilly" , current@FreeBSD.ORG Subject: Re: ELF binaries size In-reply-to: Your message of "Tue, 01 Sep 1998 18:21:27 MST." <199809020121.SAA16677@austin.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 01 Sep 1998 18:28:14 +0000 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Does that mean that the last page in a text segment is treated > > > differently (wrt vm paging) than the rest of the image, or is > > > garbage loaded plast the end, along with the last page? Is this a > > > security problem? > > > > No, we map both text and data read-only. > > No, the text is read-only and the data is copy-on-write. Is this an ELF requirement, or just an arbitrary change? > > The bss is still page-aligned. > > Nope. Not in ELF. It starts somewhere in the middle of the last > data page. So much for my understanding. 8( If the data segment is read/write, that's not much of a problem though. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message