From 4a75b1afc24240f0320911070f95ddf644b8cac7 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 28 Dec 2013 17:57:15 +0000 Subject: Require an explicit PT_OPENBSD_RANDOMIZE program header in the kernel linker script (note that the amd64 linker script is currently not used). Discussed with deraadt@ --- sys/arch/amd64/conf/kern.ldscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/amd64/conf') diff --git a/sys/arch/amd64/conf/kern.ldscript b/sys/arch/amd64/conf/kern.ldscript index 4258dbf5d10..2b2b658d73b 100644 --- a/sys/arch/amd64/conf/kern.ldscript +++ b/sys/arch/amd64/conf/kern.ldscript @@ -1,4 +1,4 @@ -/* $OpenBSD: kern.ldscript,v 1.2 2013/03/21 15:50:28 deraadt Exp $ */ +/* $OpenBSD: kern.ldscript,v 1.3 2013/12/28 17:57:14 miod Exp $ */ /* * Copyright (c) 2009 Tobias Weingartner @@ -26,6 +26,7 @@ PHDRS rodata PT_LOAD; data PT_LOAD; bss PT_LOAD; + openbsd_randomize 0x65a3dbe6; /* PT_OPENBSD_RANDOMIZE */ } /* -- cgit v1.2.3