|
From: Nicholas N. <nj...@ca...> - 2004-07-27 18:50:46
|
On Tue, 27 Jul 2004, Tom Hughes wrote: >> 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. Thanks Tom, this fixes the problem! (And it now falls over slightly further along :) I had worked out that Valgrind was observing the requested 0x100000 alignment and the kernel wasn't, but hadn't got any further than that. The kernel's behaviour seems odd here... Am I right that this second patch completely obsoletes the first? N |