From df5bde45e0a29384ac83cb952fcc6c4bd157c359 Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 11 Feb 2018 21:07:08 +0000 Subject: [PATCH] Move .openbsd.randomdata into .rodata. This makes things more consistent across architectures. Requested by deraadt@ ok kettenis@ --- sys/arch/arm64/conf/kern.ldscript | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/arm64/conf/kern.ldscript b/sys/arch/arm64/conf/kern.ldscript index 4f6f17d6bb0..9ec616f878a 100644 --- a/sys/arch/arm64/conf/kern.ldscript +++ b/sys/arch/arm64/conf/kern.ldscript @@ -1,4 +1,4 @@ -/* $OpenBSD: kern.ldscript,v 1.7 2017/10/24 20:06:54 guenther Exp $ */ +/* $OpenBSD: kern.ldscript,v 1.8 2018/02/11 21:07:08 patrick Exp $ */ /* $NetBSD: ldscript.evbarm,v 1.2 2003/03/05 23:54:22 thorpej Exp $ */ OUTPUT_ARCH(aarch64) @@ -36,15 +36,15 @@ SECTIONS { *(.rodata .rodata.*) } :rodata + .openbsd.randomdata : + { + *(.openbsd.randomdata) + } :openbsd_randomize :rodata PROVIDE (_erodata = .); - /* Move .random to the next page, so we can add W bit on it and .data */ + /* Move .data to the next page, so we can add W bit on it */ . = ALIGN(__ALIGN_SIZE); PROVIDE (__data_start = .); - .openbsd.randomdata : - { - *(.openbsd.randomdata) - } :openbsd_randomize :data .got : { *(.got .got.*) -- 2.20.1