[all-commits] [llvm/llvm-project] e2c8fa: [SystemZ][z/OS] Add z/OS archive writing support (...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon Jul 13 19:41:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2c8fa09872cfacba7f73599dcf8557971ebe865
      https://github.com/llvm/llvm-project/commit/e2c8fa09872cfacba7f73599dcf8557971ebe865
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M llvm/lib/Object/ArchiveWriter.cpp
    A llvm/test/tools/llvm-ar/zos-write.test
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  [SystemZ][z/OS] Add z/OS archive writing support (#200087)

This patch implement z/OS archive writing in ArchiveWriter and adds the
option `llvm-ar --format=zos`.

Moreover, This patch teaches `llvm-ar` to emit z/OS-compatible archives
by:
- Detecting GOFF object files as z/OS members
- Writing z/OS member headers and archive magic
- Converting archive headers and symbol-name string tables to EBCDIC
- Emitting z/OS symbol table entries
- Using EBCDIC newline padding bytes
- Add a z/OS-specific workaround for empty symbol tables by emitting a
dummy blank symbol to satisfy binder requirements.



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