[all-commits] [llvm/llvm-project] 948fc6: [lld-macho] Set 4-byte alignment for `__init_offsets`

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Thu Nov 10 14:33:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 948fc66f5e86450e602a1d48025f76b13efd5bd2
      https://github.com/llvm/llvm-project/commit/948fc66f5e86450e602a1d48025f76b13efd5bd2
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp
    M lld/test/MachO/init-offsets.s

  Log Message:
  -----------
  [lld-macho] Set 4-byte alignment for `__init_offsets`

dyld refuses to run initializers if this section is unaligned.

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=1383240

Differential Revision: https://reviews.llvm.org/D137803




More information about the All-commits mailing list