From: kettenis Date: Fri, 31 Mar 2023 18:49:43 +0000 (+0000) Subject: Since all arm64 assembly code in libc uses the ENTRY* macros from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ab57309065efbabbb1580ce266b3f255baae1d83;p=openbsd 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@ --- 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