artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9355c7
)
on sh/landisk, ELF binaries are currently unpadded between text and rodata.
author
deraadt
<deraadt@openbsd.org>
Wed, 4 Jan 2023 00:18:50 +0000
(
00:18
+0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 4 Jan 2023 00:18:50 +0000
(
00:18
+0000)
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
patch
|
blob
|
history
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
96b6335
..
afbe3f4
100644
(file)
--- 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