Date: Tue, 01 Sep 1998 18:28:14 +0000 From: Mike Smith <mike@smith.net.au> To: John Polstra <jdp@polstra.com> Cc: Mike Smith <mike@smith.net.au>, "Andrew Reilly" <reilly@zeta.org.au>, current@FreeBSD.ORG Subject: Re: ELF binaries size Message-ID: <199809011828.SAA02547@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 01 Sep 1998 18:21:27 MST." <199809020121.SAA16677@austin.polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809011828.SAA02547>