From 8c7eb3b5670b8479ed7f34dd46b17f0825b48972 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 25 Feb 2014 21:26:45 +0000 Subject: Put edata after the .openbsd.randomdata phdr, to prevent the former's contents from being bzeroed when locore bzeros what it thinks is the bss. --- sys/arch/sparc/conf/ld.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc/conf/ld.script b/sys/arch/sparc/conf/ld.script index 15813b0885c..e33d85eb5b3 100644 --- a/sys/arch/sparc/conf/ld.script +++ b/sys/arch/sparc/conf/ld.script @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.script,v 1.2 2014/01/01 08:02:09 miod Exp $ */ +/* $OpenBSD: ld.script,v 1.3 2014/02/25 21:26:44 miod Exp $ */ /* * Copyright (c) 2013 Mark Kettenis @@ -44,12 +44,12 @@ SECTIONS { PROVIDE(__data_start = ABSOLUTE(.)); *(.data) - PROVIDE(edata = ABSOLUTE(.)); } :data .openbsd.randomdata : { *(.openbsd.randomdata) } :data :openbsd_randomize + PROVIDE(edata = ABSOLUTE(.)); .bss : { *(.bss) -- cgit v1.2.3