[all-commits] [llvm/llvm-project] 3a8c6a: [lld-macho] Fix __objc_stubs ordering

Keith Smiley via All-commits all-commits at lists.llvm.org
Tue Dec 13 13:24:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a8c6a3039afa064719a498a37428ded7874188f
      https://github.com/llvm/llvm-project/commit/3a8c6a3039afa064719a498a37428ded7874188f
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M lld/MachO/OutputSegment.cpp
    M lld/test/MachO/x86-64-objc-stubs.s

  Log Message:
  -----------
  [lld-macho] Fix __objc_stubs ordering

In the case of large binaries previously you could end up getting
relocation failures. This mirrors ld64's ordering of these sections. I'm
not sure this solves all cases but it should help in some.

Fixes https://github.com/llvm/llvm-project/issues/58298

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




More information about the All-commits mailing list