From owner-freebsd-current Tue Sep 1 18:19:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA04959 for freebsd-current-outgoing; Tue, 1 Sep 1998 18:19:08 -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 SAA04948 for ; Tue, 1 Sep 1998 18:19:05 -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 SAA02451; Tue, 1 Sep 1998 18:15:32 GMT (envelope-from mike@dingo.cdrom.com) Message-Id: <199809011815.SAA02451@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: "Andrew Reilly" cc: John Polstra , current@FreeBSD.ORG Subject: Re: ELF binaries size In-reply-to: Your message of "Wed, 02 Sep 1998 09:06:45 +1000." <19980902090645.A1965@reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 01 Sep 1998 18:15:32 +0000 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, Sep 01, 1998 at 10:19:18AM -0700, John Polstra wrote: > > Yes. That's because a.out rounds the text and data segments up to > > page boundaries, but ELF does not. > > 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. The bss is still page-aligned. -- \\ 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