[llvm] [SystemZ][z/OS] Add z/OS archive writing support (PR #200087)

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 21:55:32 PDT 2026


================
@@ -631,14 +670,25 @@ static void writeSymbolTable(raw_ostream &Out, object::Archive::Kind Kind,
       if (isBSDLike(Kind))
         printNBits(Out, Kind, StringOffset);
       printNBits(Out, Kind, Pos); // member offset
+      if (isZOSArchive(Kind))
+        printNBits(Out, Kind, Pos); // symbol flags
----------------
amy-kwan wrote:

That's a good point. @redstar Do you by any chance have any thoughts with respect to this? Presumably, the flags shouldn't just be `Pos` and might be `0` in this case, or a bitmask of some sort?

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


More information about the llvm-commits mailing list