[clang] [llvm] [PAC][clang] Fix ptrauth module flags behavior (PR #204226)

Anatoly Trosinenko via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 9 05:08:39 PDT 2026


================
@@ -4,10 +4,18 @@
 
 // ELFGOT:      !llvm.module.flags = !{
 // ELFGOT-SAME: !0
+// ELFGOT-SAME: !1
----------------
atrosinenko wrote:

By the way, I would add the case of "aarch64-elf-pauthabi-version" being zero to "build-attributes-pauthabi.ll" and "note-gnu-property-elf-pauthabi.ll" tests just to be sure this corner case neither crashes the asm printer in the backend nor the binary parser in `llvm-readelf` (say, by treating zero flag as "absent" and thus asserting out on the condition "only one of two flags is set").

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


More information about the cfe-commits mailing list