We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34fbe1d commit 954cb15Copy full SHA for 954cb15
arch/arm64/Makefile
@@ -67,7 +67,9 @@ endif
67
68
ifeq ($(CONFIG_ARM64_BTI_KERNEL),y)
69
KBUILD_CFLAGS += -mbranch-protection=pac-ret+bti
70
+ KBUILD_RUSTFLAGS += -Z branch-protection=bti,pac-ret
71
else ifeq ($(CONFIG_ARM64_PTR_AUTH_KERNEL),y)
72
+ KBUILD_RUSTFLAGS += -Z branch-protection=pac-ret
73
ifeq ($(CONFIG_CC_HAS_BRANCH_PROT_PAC_RET),y)
74
KBUILD_CFLAGS += -mbranch-protection=pac-ret
75
else
0 commit comments