From 9dbe1ae0acd45ab31ed09677d83ec1cfdb257ad1 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 4 Jan 2023 00:18:50 +0000 Subject: [PATCH] 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 --- gnu/usr.bin/binutils-2.17/ld/emulparams/shelf_obsd.sh | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.20.1