summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/include/stdarg.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-06-04 14:10:43 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-06-04 14:10:43 +0000
commitbed5520b881648263221e601b3a2060f6664ef99 (patch)
tree4529a8dc0fa9634db4d9995838e0a1d315a24411 /sys/arch/macppc/include/stdarg.h
parentdecd1e7d7a9087db7bbfcf59213cc80dc4a3266c (diff)
Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable. But randomize the link order of all other .o files in the kernel, so that their exec/rodata/data/bss segments land all over the place. Late during kernel boot, unmap the early startup code. As a result, the internal layout of every newly build bsd kernel is different from past kernels. Internal relative offsets are not known to an outside attacker. The only known offsets are in the startup code, which has been unmapped. Ramdisk kernels cannot be compiled like this, because they are gzip'd. When the internal pointer references change, the compression dictionary bloats and results in poorer compression. With guidance and ok deraadt@
Diffstat (limited to 'sys/arch/macppc/include/stdarg.h')
0 files changed, 0 insertions, 0 deletions