From e43c9d161990e5686db2fcdfd3e5c3a4a02160fe Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 28 Dec 2013 19:27:35 +0000 Subject: [PATCH] Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the data we want to initialize with randomness. It covered exactly nothing before! --- sys/arch/sparc64/conf/ld.script | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 = .); } -- 2.20.1