summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-12-24 10:50:41 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-12-24 10:50:41 +0000
commit731f6d588a8d354ee1cad995f86805d234f84289 (patch)
tree742ed7eb222d8911f4ced56cccdf1845ab1ccab4 /lib/libc
parentecd2971d1cb9dbe6c04dbc327fe0af24bb3cbfb5 (diff)
Build libc with executable-only .text on arm64.
ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/aarch64/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/arch/aarch64/Makefile.inc b/lib/libc/arch/aarch64/Makefile.inc
index 320c45cfaa4..636d81f0472 100644
--- a/lib/libc/arch/aarch64/Makefile.inc
+++ b/lib/libc/arch/aarch64/Makefile.inc
@@ -1,8 +1,10 @@
-# $OpenBSD: Makefile.inc,v 1.2 2019/04/01 03:53:21 kettenis Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2022/12/24 10:50:40 kettenis Exp $
# $NetBSD: Makefile.inc,v 1.5 2002/07/10 04:29:06 thorpej Exp $
.include <bsd.own.mk>
+LDADD+= -Wl,--execute-only
+
# Suppress DWARF2 warnings
DEBUG?= -gdwarf-4