From 5a676d5e0c6dabb8f95ad8c221c2c576c0f2060e Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 24 Dec 2022 10:52:05 +0000 Subject: Make .text (and .btext) execute-only on arm64. ok deraadt@ --- libexec/ld.so/aarch64/ld.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ld.so/aarch64') diff --git a/libexec/ld.so/aarch64/ld.script b/libexec/ld.so/aarch64/ld.script index 77f3a846a29..20eaf8289f1 100644 --- a/libexec/ld.so/aarch64/ld.script +++ b/libexec/ld.so/aarch64/ld.script @@ -1,8 +1,8 @@ PHDRS { rodata PT_LOAD FILEHDR PHDRS FLAGS (4); - text PT_LOAD; - btext PT_LOAD FLAGS (0x08000005); + text PT_LOAD FLAGS(1); + btext PT_LOAD FLAGS (0x08000001); data PT_LOAD; random PT_OPENBSD_RANDOMIZE; relro PT_GNU_RELRO; -- cgit v1.2.3