Use absolute pointers in codepatch entries
authorsf <sf@openbsd.org>
Sat, 1 Jul 2017 19:38:41 +0000 (19:38 +0000)
committersf <sf@openbsd.org>
Sat, 1 Jul 2017 19:38:41 +0000 (19:38 +0000)
commit2daa523994d9464fa02a5384e7a44ef5b457cf06
treed6d3fd8dbf7af517b4d2367f45df548d4f49fbe1
parent12dd90a1344c5a9766ec320087c6288822bb4866
Use absolute pointers in codepatch entries

Instead of offsets to KERNBASE, store absolute pointers in the
codepatch entries. This makes the resulting kernel a few KB larger on
amd64, but KERNBASE will go away when ASLR is introduced.

Requested by deraadt@
sys/arch/amd64/amd64/codepatch.c
sys/arch/amd64/include/codepatch.h