title="Build the kernel as PIE"
Add a toolchain infrastructure that allows the kernel to be compiled as
Position Independent Executable (PIE). Typically, having the kernel compiled
as a kernel module itself - using the already-existing infrastructure - would
be a good start. Then, some choices and proposals can be made to optimize
performance of the kernel binary at the instruction level.
* A set of Makefile changes that allow to build a PIE kernel at least on amd64
* If possible, an evaluation of the performance cost.
It may be a little difficult to test the implementation, because the kernel
won't boot. But as long as the kernel ELF binary is structurally correct it's
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb