[all-commits] [llvm/llvm-project] 637d0a: [SystemZ][z/OS] Use section ordinal for temporary ...

Kai Nacke via All-commits all-commits at lists.llvm.org
Fri Sep 25 06:42:17 PDT 2026


  Branch: refs/heads/users/redstar/useordinalinsteadofindex
  Home:   https://github.com/llvm/llvm-project
  Commit: 637d0afeada3378dbefbf785e50559a00fbfdf76
      https://github.com/llvm/llvm-project/commit/637d0afeada3378dbefbf785e50559a00fbfdf76
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/lib/MC/GOFFObjectWriter.cpp
    M llvm/test/CodeGen/SystemZ/zos-section-1.ll
    M llvm/test/CodeGen/SystemZ/zos-section-2.ll
    M llvm/test/CodeGen/SystemZ/zos-symbol-2.ll

  Log Message:
  -----------
  [SystemZ][z/OS] Use section ordinal for temporary symbols

A relocation involving a temporary symbol is interpreted as offset
of the symbol to the section begin. Currently, this is resolved via
the begin symbol of the section. However, that symbol may also have
the temporary flag set, and therefore has an index of 0. Since a
symbol is emitted of reach section, it is safe to use the ordinal
of the section instead, avoiding all issues with temporary symbols.



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