From: kettenis Date: Sat, 28 Dec 2013 19:27:35 +0000 (+0000) Subject: Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the data X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e43c9d161990e5686db2fcdfd3e5c3a4a02160fe;p=openbsd Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the data we want to initialize with randomness. It covered exactly nothing before! --- diff --git a/sys/arch/sparc64/conf/ld.script b/sys/arch/sparc64/conf/ld.script index 02e3eb65e07..7b483210fb6 100644 --- a/sys/arch/sparc64/conf/ld.script +++ b/sys/arch/sparc64/conf/ld.script @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.script,v 1.4 2013/12/28 18:20:51 kettenis Exp $ */ +/* $OpenBSD: ld.script,v 1.5 2013/12/28 19:27:35 kettenis Exp $ */ /* * Copyright (c) 2013 Mark Kettenis @@ -43,11 +43,15 @@ SECTIONS { *(.data) } :data + .openbsd.randomdata : + { + *(.openbsd.randomdata) + } :data :openbsd_randomize .bss : { *(.bss) . = ALIGN(64 / 8); - } + } :data . = ALIGN(64 / 8); PROVIDE (end = .); }