diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-21 20:08:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-21 20:08:54 +0000 |
commit | ca01b19222809cfbf735a7a63622895515f0593c (patch) | |
tree | b4224fcba0f440562283dcba5b5e921b6ce7d239 /sys/arch/i386/conf | |
parent | fd6b7e526ea68419cbb4f47343d5ab68212af005 (diff) |
Fill space between sections with traps, rather than nops.
Diffstat (limited to 'sys/arch/i386/conf')
-rw-r--r-- | sys/arch/i386/conf/ld.script | 10 |
1 files changed, 5 insertions, 5 deletions
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 <mlarkin@openbsd.org> @@ -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 = .; |