================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to