summaryrefslogtreecommitdiff
path: root/libexec/ld.so/aarch64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-12-24 10:52:05 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-12-24 10:52:05 +0000
commit5a676d5e0c6dabb8f95ad8c221c2c576c0f2060e (patch)
tree80b95ac302008581febada97412987c2253943f8 /libexec/ld.so/aarch64
parent18b6bbfb16f337d84a7e4b6a43f495e015ef2734 (diff)
Make .text (and .btext) execute-only on arm64.
ok deraadt@
Diffstat (limited to 'libexec/ld.so/aarch64')
-rw-r--r--libexec/ld.so/aarch64/ld.script4
1 files changed, 2 insertions, 2 deletions
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;