From: deraadt Date: Thu, 2 Feb 2023 00:43:08 +0000 (+0000) Subject: i386 and alpha ld.so also work with X-only text LOAD. There is no X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c284c86c597e8cd8a3ac9c8eaace31734c12d607;p=openbsd i386 and alpha ld.so also work with X-only text LOAD. There is no hardware enforcement for this, but uvm can some of it's own tricks on occasion. --- diff --git a/libexec/ld.so/alpha/ld.script b/libexec/ld.so/alpha/ld.script index 5e24bacb3cf..fadf82951d1 100644 --- a/libexec/ld.so/alpha/ld.script +++ b/libexec/ld.so/alpha/ld.script @@ -1,7 +1,7 @@ PHDRS { rodata PT_LOAD FILEHDR PHDRS FLAGS (4); - text PT_LOAD; + text PT_LOAD FLAGS(1); btext PT_LOAD FLAGS (0x08000005); data PT_LOAD; random PT_OPENBSD_RANDOMIZE; diff --git a/libexec/ld.so/i386/ld.script b/libexec/ld.so/i386/ld.script index 72b894e0085..8a3a1b3edaa 100644 --- a/libexec/ld.so/i386/ld.script +++ b/libexec/ld.so/i386/ld.script @@ -1,7 +1,7 @@ PHDRS { rodata PT_LOAD FILEHDR PHDRS FLAGS (4); - text PT_LOAD; + text PT_LOAD FLAGS(1); btext PT_LOAD FLAGS (0x08000005); data PT_LOAD; random PT_OPENBSD_RANDOMIZE;