From: deraadt Date: Wed, 21 Jun 2017 23:21:35 +0000 (+0000) Subject: Better off padding with 0x0. 0x0 = "break 0,0". X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=746cb6e22707b87a72aaaa6b5d104757a58d4857;p=openbsd Better off padding with 0x0. 0x0 = "break 0,0". (BTW, the binutils disasm cannot handle that instruction with those parameters, because the decoder logic is wrong..) --- diff --git a/sys/arch/hppa/conf/ld.script b/sys/arch/hppa/conf/ld.script index 03c1b095e2a..27ebb7fbd38 100644 --- a/sys/arch/hppa/conf/ld.script +++ b/sys/arch/hppa/conf/ld.script @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.script,v 1.18 2017/06/05 18:56:30 deraadt Exp $ */ +/* $OpenBSD: ld.script,v 1.19 2017/06/21 23:21:35 deraadt Exp $ */ /* * Copyright (c) 2003 Michael Shalayeff @@ -44,7 +44,7 @@ SECTIONS *(.gnu.warning) . = ALIGN(4096); etext = ABSOLUTE(.); - } = 0x08000240 /* nop filled */ + } =0x00000000 . = 0x600000; @@ -58,7 +58,7 @@ SECTIONS __unwind_end = .; . = ALIGN(4096); __rodata_end = .; - } = 0 + } =0x00000000 __data_start = ABSOLUTE(.); .data : @@ -69,7 +69,7 @@ SECTIONS CONSTRUCTORS . = ALIGN(4096); edata = ABSOLUTE(.); - } = 0 + } =0x00000000 .ctors : { *(.ctors) } .dtors : { *(.dtors) }