From ab57309065efbabbb1580ce266b3f255baae1d83 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 31 Mar 2023 18:49:43 +0000 Subject: [PATCH] Since all arm64 assembly code in libc uses the ENTRY* macros from they are already get the necessary "bti c" instructions. Passi the -mmark-bti-property option to mark the corresponding object files as having BTI support. 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 8b5c85c998e..ae218bcf1a8 100644 --- a/lib/libc/arch/aarch64/Makefile.inc +++ b/lib/libc/arch/aarch64/Makefile.inc @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.4 2023/01/11 14:38:09 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2023/03/31 18:49:43 kettenis Exp $ # $NetBSD: Makefile.inc,v 1.5 2002/07/10 04:29:06 thorpej Exp $ .include +AFLAGS+= -mmark-bti-property + # Suppress DWARF2 warnings DEBUG?= -gdwarf-4 -- 2.20.1