[all-commits] [llvm/llvm-project] 816a2e: [SystemZ][z/OS] Add AMODE to PR symbols

Kai Nacke via All-commits all-commits at lists.llvm.org
Mon Sep 14 17:51:49 PDT 2026


  Branch: refs/heads/users/redstat/praatrwithamode
  Home:   https://github.com/llvm/llvm-project
  Commit: 816a2ec0f8a23f2f319f843250d4d7bf27ae80af
      https://github.com/llvm/llvm-project/commit/816a2ec0f8a23f2f319f843250d4d7bf27ae80af
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M llvm/include/llvm/MC/MCGOFFAttributes.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/GOFFObjectWriter.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCSymbolGOFF.cpp
    M llvm/test/CodeGen/SystemZ/zos-common-global.ll
    M llvm/test/CodeGen/SystemZ/zos-section-2.ll
    M llvm/test/CodeGen/SystemZ/zos-symbol-2.ll
    M llvm/test/tools/llvm-ar/zos-symattrs.test

  Log Message:
  -----------
  [SystemZ][z/OS] Add AMODE to PR symbols

Contrary to the documentation, setting the AMODE at PR symbols is
required. The symptom is that references to variables `optind` and
`optarg` (from include `<getopt.h>`, the LE-provided C runtime)
results in "missing symbol" errors.
Fix is to add AMODE to PrAttr, analog to LdAttr.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list