diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-02-25 21:26:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-02-25 21:26:45 +0000 |
commit | 8c7eb3b5670b8479ed7f34dd46b17f0825b48972 (patch) | |
tree | bc28dde3c35c3ac336d7f5c17b166d1fe7d4ee87 /sys/arch | |
parent | 41f3829ccc2ca3afdb8e792c3a466d7560015ed8 (diff) |
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.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/conf/ld.script | 4 |
1 files changed, 2 insertions, 2 deletions
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 <kettenis@openbsd.org> @@ -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) |