From d302bb96a6e09a84558a5e9d4c877b5acaf026e4 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 21 Jun 2017 20:29:39 +0000 Subject: [PATCH] Intra-segment traps instead of nops. Similar to kernel change, further reduction in nopsleds in code and data segments (if those data segments ever become X, that is) ok mlarkin --- gnu/usr.bin/binutils-2.17/ld/emulparams/elf_i386_obsd.sh | 1 + gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_i386_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_i386_obsd.sh index ae7ba0e3d29..22aa8ca5fb2 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_i386_obsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_i386_obsd.sh @@ -1,5 +1,6 @@ . ${srcdir}/emulparams/elf_i386.sh . ${srcdir}/emulparams/elf_obsd.sh +NOP=0xcccccccc if test "${LD_FLAG#"${LD_FLAG%pie}"}" = "pie"; then TEXT_START_ADDR=0x0 diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh index 3689dad903f..88be7b99810 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh @@ -1,2 +1,3 @@ . ${srcdir}/emulparams/elf_x86_64.sh . ${srcdir}/emulparams/elf_obsd.sh +NOP=0xcccccccc -- 2.20.1