Intra-segment traps instead of nops. Similar to kernel change, further
authorderaadt <deraadt@openbsd.org>
Wed, 21 Jun 2017 20:29:39 +0000 (20:29 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 21 Jun 2017 20:29:39 +0000 (20:29 +0000)
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
gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh

index ae7ba0e..22aa8ca 100644 (file)
@@ -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