[all-commits] [llvm/llvm-project] 0d1109: [GOFF] Write out relocations in the GOFF writer

Kai Nacke via All-commits all-commits at lists.llvm.org
Fri Nov 28 14:55:18 PST 2025


  Branch: refs/heads/users/redstar/goffwriter-7
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d1109a022dfaeab8022870c248fe35a2398ddae
      https://github.com/llvm/llvm-project/commit/0d1109a022dfaeab8022870c248fe35a2398ddae
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/GOFF.h
    M llvm/include/llvm/MC/MCGOFFObjectWriter.h
    M llvm/lib/MC/GOFFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
    M llvm/test/CodeGen/SystemZ/zos-section-1.ll
    M llvm/test/CodeGen/SystemZ/zos-section-2.ll

  Log Message:
  -----------
  [GOFF] Write out relocations in the GOFF writer

Add support for writing relocations. Since the symbol numbering is only
available after the symbols are written, the relocations are collected
in a vector. At write time, the relocations are converted using the
symbols ids, compressed and written out. A relocation data record is
limited to 32K-1 bytes, which requires making sure that larger relocation
data is written into multiple records.


  Commit: 511ce34a5334ca12813465f116f8e2c1562766d3
      https://github.com/llvm/llvm-project/commit/511ce34a5334ca12813465f116f8e2c1562766d3
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCGOFFObjectWriter.h
    M llvm/lib/MC/GOFFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp

  Log Message:
  -----------
  Remove `IsPCRel` parameter

Information can be retrieved from `Fixup`.


  Commit: 87dd5fa9975b6049c7498a78241b0216a9049a67
      https://github.com/llvm/llvm-project/commit/87dd5fa9975b6049c7498a78241b0216a9049a67
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCGOFFObjectWriter.h
    M llvm/lib/MC/GOFFObjectWriter.cpp

  Log Message:
  -----------
  Use only one vector to store the relocations.


  Commit: 6e9cf9606020344e8e6fbec1e2f40a15594d66d5
      https://github.com/llvm/llvm-project/commit/6e9cf9606020344e8e6fbec1e2f40a15594d66d5
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/GOFF.h

  Log Message:
  -----------
  Fix formatting.


  Commit: 4e12b6c4900d9eaa116f442d422c72d9e69309f7
      https://github.com/llvm/llvm-project/commit/4e12b6c4900d9eaa116f442d422c72d9e69309f7
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCGOFFObjectWriter.h
    M llvm/lib/MC/GOFFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
    M llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
    M llvm/test/CodeGen/SystemZ/call-zos-02.ll
    M llvm/test/CodeGen/SystemZ/zos-ada.ll

  Log Message:
  -----------
  Remove use of S_PLT


  Commit: a112e7b8a4810bf902084e61debf656ad4206a7c
      https://github.com/llvm/llvm-project/commit/a112e7b8a4810bf902084e61debf656ad4206a7c
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
    M llvm/test/CodeGen/SystemZ/zos-hlasm-out.ll

  Log Message:
  -----------
  Also test relocations


Compare: https://github.com/llvm/llvm-project/compare/774cfd1b222f...a112e7b8a481

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