From f06b843a5b1f4e95e63006762de07b7479fa0e78 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 24 Dec 2022 10:50:40 +0000 Subject: [PATCH] Build libc with executable-only .text on arm64. ok deraadt@ --- lib/libc/arch/aarch64/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +LDADD+= -Wl,--execute-only + # Suppress DWARF2 warnings DEBUG?= -gdwarf-4 -- 2.20.1