[clang] [llvm] [AArch64][PAC] Handle signing of init/fini pointers in AsmPrinter (PR #193087)

Anatoly Trosinenko via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 12 08:04:34 PDT 2026


================
@@ -1392,6 +1392,12 @@ void CodeGenModule::Release() {
 
     if (LangOpts.PointerAuthELFGOT)
       getModule().addModuleFlag(llvm::Module::Error, "ptrauth-elf-got", 1);
+    if (LangOpts.PointerAuthCalls && LangOpts.PointerAuthInitFini) {
+      getModule().addModuleFlag(llvm::Module::Error, "ptrauth-init-fini", 1);
----------------
atrosinenko wrote:

Hmm, you are right and looks like this applies to `ptrauth-elf-got` as well. I wonder whether we should set all "ptrauth-*" flags unconditionally on AArch64 then.

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


More information about the cfe-commits mailing list