[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)
Kees Cook via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 21 10:06:01 PDT 2025
================
@@ -530,6 +534,9 @@ void ARMPassConfig::addPreEmitPass() {
}
void ARMPassConfig::addPreEmitPass2() {
+ // Unpack KCFI bundles before AsmPrinter
+ addPass(createUnpackMachineBundles(nullptr));
----------------
kees wrote:
Ah! Yes it can. I've consolidate this and added a kcfi-checking predicate like done in X86 and RiscV.
https://github.com/llvm/llvm-project/pull/163698
More information about the cfe-commits
mailing list