summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/conf
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/conf')
-rw-r--r--sys/arch/amd64/conf/ld.script7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/amd64/conf/ld.script b/sys/arch/amd64/conf/ld.script
index e38604bae4c..21887db492c 100644
--- a/sys/arch/amd64/conf/ld.script
+++ b/sys/arch/amd64/conf/ld.script
@@ -1,4 +1,4 @@
-/* $OpenBSD: ld.script,v 1.10 2018/03/01 06:47:29 deraadt Exp $ */
+/* $OpenBSD: ld.script,v 1.11 2018/06/14 20:00:59 guenther Exp $ */
/*
* Copyright (c) 2009 Tobias Weingartner <weingart@tepid.org>
@@ -79,7 +79,10 @@ SECTIONS
__kernel_randomdata_phys = (. - __kernel_virt_base) + 0x1000000;
.openbsd.randomdata : AT (__kernel_randomdata_phys)
{
- *(.openbsd.randomdata)
+ __retguard_start = ABSOLUTE(.);
+ *(.openbsd.randomdata.retguard)
+ __retguard_end = ABSOLUTE(.);
+ *(.openbsd.randomdata .openbsd.randomdata.*)
} :rodata :openbsd_randomize =0xcccccccc
. = ALIGN(0x1000);
PROVIDE (erodata = .);