From c284c86c597e8cd8a3ac9c8eaace31734c12d607 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 2 Feb 2023 00:43:08 +0000 Subject: [PATCH] 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. --- libexec/ld.so/alpha/ld.script | 2 +- libexec/ld.so/i386/ld.script | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1