If the kernel symbols fit completely into the 2 MB alignment hole
authorbluhm <bluhm@openbsd.org>
Tue, 23 Jun 2015 14:19:21 +0000 (14:19 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 23 Jun 2015 14:19:21 +0000 (14:19 +0000)
commit19edda9e59693f92b50dbac0ff131d07b57b7808
tree944a6367a020fd04cbec059b325a2b95341083d7
parent642c3e06fd11b59af4550a00ec59dd254d055316
If the kernel symbols fit completely into the 2 MB alignment hole
after kernel bss but before end of the image, the page tables used
the read-only mapping of the hole.  When booting a small non-generic
kernel, this resulted in a crash, while writing to the page tables
later.
Make sure that the page tables are created after esym and after
end.
OK mlarkin@ deraadt@
sys/arch/amd64/amd64/locore.S