summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/roff.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-06-14 13:12:49 +0000
committerpatrick <patrick@openbsd.org>2017-06-14 13:12:49 +0000
commitbfb8ea58e3371e25437666d300d19af0bb1f5bbe (patch)
treee1060b3ef400106fdc3ea399e65c32438a67ff0a /usr.bin/mandoc/roff.c
parentimplement roff(7) .rj (right justify) request (diff)
downloadwireguard-openbsd-bfb8ea58e3371e25437666d300d19af0bb1f5bbe.tar.xz
wireguard-openbsd-bfb8ea58e3371e25437666d300d19af0bb1f5bbe.zip
Split early startup code out of armv7_start.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. Note that this commit does not yet unmap the early bootcode since this is not as easy as on arm64. 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 'usr.bin/mandoc/roff.c')
0 files changed, 0 insertions, 0 deletions