[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

Alexandros Lamprineas via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 02:03:27 PDT 2025


================
@@ -4652,6 +4659,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) {
                                   "", Resolver, &getModule());
     GIF->setName(ResolverName);
     SetCommonAttributes(FD, GIF);
+    SetResolverAttrs(cast<llvm::Function>(Resolver));
----------------
labrinea wrote:

I see what you mean. We apply the common attributes to the IFUNC symbol, but not on the resolver function itself.

https://github.com/llvm/llvm-project/pull/141573


More information about the cfe-commits mailing list