Since all arm64 assembly code in libc uses the ENTRY* macros from
authorkettenis <kettenis@openbsd.org>
Fri, 31 Mar 2023 18:49:43 +0000 (18:49 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 31 Mar 2023 18:49:43 +0000 (18:49 +0000)
<machine/asm.h> 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

index 8b5c85c..ae218bc 100644 (file)
@@ -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 <bsd.own.mk>
 
+AFLAGS+= -mmark-bti-property
+
 # Suppress DWARF2 warnings
 DEBUG?= -gdwarf-4