[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)
Alexandros Lamprineas via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 14 03:53:16 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:
@efriedma-quic, are you suggesting to remove the call to `SetCommonAttributes` just above? That would make the resolver non `dso_local`, which isn't desirable I think. There are tests in place that will start failing.
https://github.com/llvm/llvm-project/pull/141573
More information about the cfe-commits
mailing list