[llvm] [llvm-nm][GOFF] Display archive attributes in GOFF archives through --print-armap (PR #214527)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 01:37:11 PDT 2026


================
@@ -348,6 +348,16 @@ class LLVM_ABI Archive : public Binary {
     LLVM_ABI Expected<Child> getMember() const;
     LLVM_ABI Symbol getNext() const;
     LLVM_ABI bool isECSymbol() const;
+    /// Archive attribute bit masks for K_ZOS archive symbol table entries.
+    static constexpr uint32_t ZOSAttrWSA = 0x1;
+    static constexpr uint32_t ZOSAttrXPLink = 0x2;
+    static constexpr uint32_t ZOSAttr64Bit = 0x4;
+    static constexpr uint32_t ZOSKnownAttrMask =
+        ZOSAttrWSA | ZOSAttrXPLink | ZOSAttr64Bit;
+    /// For K_ZOS archives, returns the 32-bit attribute word stored alongside
+    /// the symbol-table entry. The low bits are described by the ZOSAttr*
----------------
jh7370 wrote:

Nit: "symbol table" without hyphen is the way we usually write it (and consistent wit the comment above the constants).

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


More information about the llvm-commits mailing list