arm64: Allow userspace to be built with PAC and BTI

Add the WITH/WITHOUT_BRANCH_PROTECTION build flags. This can be used
to enable the use of pointer authentication (FEAT_PAuth) and branch
target identification (FEAT_BTI) in userspace.

The kernel already handles both of these is userspace, we just need
to enable it.

Leave disabled for a short period for this to settle before enabling.

Reviewed by:	emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D42596
This commit is contained in:
Andrew Turner
2024-05-22 15:54:32 +00:00
parent 2183004e14
commit 82854693ae
7 changed files with 28 additions and 0 deletions
+3
View File
@@ -1,4 +1,7 @@
# z_Linux_asm.S is missing BTI support
MK_BRANCH_PROTECTION=no
.include <bsd.compiler.mk>
SHLIB_NAME= libomp.so