Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 1998 18:15:32 +0000
From:      Mike Smith <mike@smith.net.au>
To:        "Andrew Reilly" <reilly@zeta.org.au>
Cc:        John Polstra <jdp@polstra.com>, current@FreeBSD.ORG
Subject:   Re: ELF binaries size 
Message-ID:  <199809011815.SAA02451@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 02 Sep 1998 09:06:45 %2B1000." <19980902090645.A1965@reilly.home> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



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