From ca01b19222809cfbf735a7a63622895515f0593c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 21 Jun 2017 20:08:54 +0000 Subject: Fill space between sections with traps, rather than nops. --- sys/arch/i386/conf/ld.script | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch/i386/conf') diff --git a/sys/arch/i386/conf/ld.script b/sys/arch/i386/conf/ld.script index 42444b0c31f..1db92582958 100644 --- a/sys/arch/i386/conf/ld.script +++ b/sys/arch/i386/conf/ld.script @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.script,v 1.6 2017/05/31 19:18:18 deraadt Exp $ */ +/* $OpenBSD: ld.script,v 1.7 2017/06/21 20:08:53 deraadt Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -55,7 +55,7 @@ SECTIONS __text_load = LOADADDR(.text); locore0.o(.text) *(.text .text.*) - } :text + } :text =0xcccccccc PROVIDE (__etext = .); PROVIDE (etext = .); _etext = .; @@ -72,13 +72,13 @@ SECTIONS *(.rodata .rodata.*) *(.codepatch) *(.codepatchend) - } :rodata + } :rodata =0xcccccccc . = ALIGN(0x1000); __kernel_randomdata_phys = . & 0xfffffff; .openbsd.randomdata : AT (__kernel_randomdata_phys) { *(.openbsd.randomdata) - } :rodata :openbsd_randomize + } :rodata :openbsd_randomize =0xcccccccc . = ALIGN(0x1000); PROVIDE (erodata = .); _erodata = .; @@ -93,7 +93,7 @@ SECTIONS __data_size = SIZEOF(.data); __data_load = LOADADDR(.data); *(.data .data.*) - } :data + } :data =0xcccccccc . = ALIGN(0x1000); PROVIDE (edata = .); _edata = .; -- cgit v1.2.3