diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-02-11 21:07:09 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-02-11 21:07:09 +0000 |
commit | 737aafcde70a2de2219d0dc5e76d481d89377eb6 (patch) | |
tree | cb7dfc70bddec032bbbd444d5a8330ce8ab1f58c | |
parent | c04302b4ab032cecf872079f8d4ae5d107534df3 (diff) |
Move .openbsd.randomdata into .rodata. This makes things more
consistent across architectures.
Requested by deraadt@
ok kettenis@
-rw-r--r-- | sys/arch/arm64/conf/kern.ldscript | 12 |
1 files 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.*) |