summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-03-31 18:49:44 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-03-31 18:49:44 +0000
commit139ed94b9eb095a8b96bddf940960e7c14db3a55 (patch)
treed351483995e66c5d21ca757fdfd19c8eb95f833c
parentc1e0b462ef4e3d7e8ff0d136b5c96ba6846cf844 (diff)
Since all arm64 assembly code in libc uses the ENTRY* macros from
<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@
-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 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 <bsd.own.mk>
+AFLAGS+= -mmark-bti-property
+
# Suppress DWARF2 warnings
DEBUG?= -gdwarf-4