From: deraadt Date: Wed, 4 Jan 2023 00:18:50 +0000 (+0000) Subject: on sh/landisk, ELF binaries are currently unpadded between text and rodata. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9dbe1ae0acd45ab31ed09677d83ec1cfdb257ad1;p=openbsd on sh/landisk, ELF binaries are currently unpadded between text and rodata. Comment says because no nx support. Well, we'll soon be able to something like nx, and need the rodata to not be mingled into the same pages as executable, so enforce padding. with kettenis, ok miod --- diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/shelf_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/shelf_obsd.sh index 96b63358fe3..afbe3f4ede4 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/shelf_obsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/shelf_obsd.sh @@ -18,6 +18,3 @@ unset EMBEDDED unset OTHER_SECTIONS . ${srcdir}/emulparams/elf_obsd.sh - -# No nx bit, so don't bother to pad between .text and .rodata -unset PAD_RO