diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-12-28 19:27:36 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-12-28 19:27:36 +0000 |
commit | 01d1e21a36f00278ec0eb14df4e7fc120a12a468 (patch) | |
tree | 23bd3f726c2cabb323d1275bfa058dcf4e50a671 /sys/arch | |
parent | f68427d661cae08372e4759a69cdb4a18d53ee6e (diff) |
Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the data
we want to initialize with randomness. It covered exactly nothing before!
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/conf/ld.script | 8 |
1 files 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 <kettenis@openbsd.org> @@ -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 = .); } |