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

Kai Nacke via All-commits all-commits at lists.llvm.org
Fri Nov 7 15:36:28 PST 2025


  Branch: refs/heads/users/redstar/goffwriter-7
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f9bfbbd5e893bcab320dc26c71e49779ef7d04d
      https://github.com/llvm/llvm-project/commit/1f9bfbbd5e893bcab320dc26c71e49779ef7d04d
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-11-07 (Fri, 07 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.



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