From: kettenis Date: Sat, 24 Dec 2022 10:52:04 +0000 (+0000) Subject: Make .text (and .btext) execute-only on arm64. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=406273279adfaafe7aabb82d92c2f3b3b5366b3a;p=openbsd Make .text (and .btext) execute-only on arm64. ok deraadt@ --- 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;