Subject: Re: "page alignment" of kernels in the Booter
To: None <nigel@ind.tansu.com.au, port-mac68k@NetBSD.org>
From: Matt Thomas <matt@3am-software.com>
List: port-mac68k
Date: 03/11/2001 16:37:33
At 11:16 AM 3/12/2001 +1100, nigel@ind.tansu.com.au wrote:

>         The current Booter tries to align various parts of the kernel
>on VM-page boundaries. It always aligns TEXT, aligns DATA for ZMAGIC
>and NMAGIC kernels, and also aligns the end of the buffer at the end
>of a page boundary.
>
>         I am trying to hack ELF support in. The libsa/loadfile code
>only seems to align some sections to longword boundaries. So, can I
>assume that an ELF kernel will always have the correct alignments
>compiled/linked in?

You should always trust what the ELF header tells you.
--
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message