|
From: Tom H. <th...@cy...> - 2004-07-27 18:21:09
|
In message <ec6...@lo...>
Tom Hughes <th...@cy...> wrote:
> The attached patch should fix it.
>
> That said, the map output that Nick sent from when stage2 was launched
> directly makes it look like the OS was only round to page boundaries
> anyway!
This patch may be better - it switches mapelf to do what the kernel
does and only map the pages that are required instead of rounding
everything to the specified alignment.
It does assert that the overall result has the correct aligment
and will I think mean that the mapping of stage2 when launched by
stage1 will match the mapping when it is launched directly.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|