[all-commits] [llvm/llvm-project] 187ce0: [lld-macho] Fix duplicate symbols with relocatable...

Keith Smiley via All-commits all-commits at lists.llvm.org
Wed Feb 2 14:55:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 187ce07a06f58ad9e751b32faec5c3f85e5597d6
      https://github.com/llvm/llvm-project/commit/187ce07a06f58ad9e751b32faec5c3f85e5597d6
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/test/MachO/lc-linker-option.ll

  Log Message:
  -----------
  [lld-macho] Fix duplicate symbols with relocatable objects

In the case your framework bundles contain relocatable objects, and your
objects include LC_LINKER_OPTIONs for the framework, previously they
would not be deduplicated like they would have if they were static
archives. This was also the case if you passed `-framework` for the
framework as well.

Reviewed By: #lld-macho, thakis, oontvoo

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




More information about the All-commits mailing list