[llvm-branch-commits] [llvm] [llvm-ar][GOFF] Implement symbol attributes for GOFF archives (PR #214528)
David Tenty via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 10 16:46:09 PDT 2026
================
@@ -375,6 +375,41 @@ GOFFObjectFile::getSymbolSection(DataRefImpl Symb) const {
std::to_string(SymEdId));
}
+uint32_t GOFFObjectFile::getZOSSymbolArchiveAttributes(DataRefImpl Symb) const {
+ const uint8_t *SymRecord = getSymbolEsdRecord(Symb);
+ uint32_t Attrs = 0;
+
+ // Bit 2 (0x4): 64-bit — AMODE is only defined for LD/ER records.
----------------
daltenty wrote:
nit: I can find some documentation which seems to indicate an ED can have a default AMODE that takes effect if there is no AMODE on the label, but other sources indicate it cannot. Let's follow up about this offline.
https://github.com/llvm/llvm-project/pull/214528
More information about the llvm-branch-commits
mailing list