[all-commits] [llvm/llvm-project] 6e5621: [yaml2obj][MachO] Fix byte order of the indirect s...

Sungbin Jo via All-commits all-commits at lists.llvm.org
Mon Jun 22 09:58:31 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e562169fd026e26124fe4e2e435d3a4c522ffe2
      https://github.com/llvm/llvm-project/commit/6e562169fd026e26124fe4e2e435d3a4c522ffe2
  Author: Sungbin Jo <goranmoomin at daum.net>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    M llvm/lib/ObjectYAML/MachOEmitter.cpp
    A llvm/test/ObjectYAML/MachO/endianness.yaml

  Log Message:
  -----------
  [yaml2obj][MachO] Fix byte order of the indirect symbol table (#205044)

This is a follow-up of PR #203680 that added the test case
`linkedit-alignment.test`, which currently fails on big-endian buildbots
(see: https://lab.llvm.org/buildbot/#/builders/98/builds/3084 and
https://lab.llvm.org/buildbot/#/builders/114/builds/906).

The failure seems to be on `yaml2obj`, where `writeDynamicSymbolTable`
emits an indirect symbol table in host byte order rather than the
specified object's byte order (i.e. the `IsLittleEndian` field value).

This PR adds the missing swap and a regression test that round-trips all
endian-sensitive fields with both endianness values.



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