[all-commits] [llvm/llvm-project] fbb459: [lld/mac] Resolve defined symbols before undefined...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Jul 19 13:42:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbb45947b2a77c6295c110c7fbb648adac14d2c9
      https://github.com/llvm/llvm-project/commit/fbb45947b2a77c6295c110c7fbb648adac14d2c9
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/MachO/InputFiles.cpp
    A lld/test/MachO/weak-definition-in-main-file.s

  Log Message:
  -----------
  [lld/mac] Resolve defined symbols before undefined symbols

Ports https://reviews.llvm.org/D95985 to the MachO port.
Happens to fix PR51135; see that bug for details.
Also makes lld's behavior match ld64 for the included test case.

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




More information about the All-commits mailing list