[clang] [llvm] [clang][llvm][AArch64] Set hardening fn attrs on synthetic functions (PR #211013)
Anatoly Trosinenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 05:52:53 PDT 2026
================
@@ -1561,6 +1540,27 @@ void CodeGenModule::Release() {
"sign-return-address-with-bkey", 2);
}
if (T.isAArch64()) {
+ // Emit the following 4 module flags so LLVM can derive corresponding
----------------
atrosinenko wrote:
> And normally, we do not rely on checking "ptrauth-calls" in backend for indirect call signing - we just use ptrauth call bundles
Sure, my idea was that mid-end passes may need to synthesize functions with indirect calls - then they would need to know how to authenticate the pointers that are loaded from memory, if any. When I tried experimenting with something like that, I concluded that ad-hoc hardcoded constants might be easier to implement.
https://github.com/llvm/llvm-project/pull/211013
More information about the llvm-commits
mailing list