From 57da85b7c6be6e1e58fbfabefe8f3da1ec47a210 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 2 Feb 2023 00:43:11 +0000 Subject: 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(-) (limited to 'libexec') 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; -- cgit v1.2.3