[all-commits] [llvm/llvm-project] 24706c: [lld-macho] Avoid force-loading the same archive t...

Jez Ng via All-commits all-commits at lists.llvm.org
Thu Jun 17 08:14:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24706cd73cd150543753a2e169c68a2c68da46a1
      https://github.com/llvm/llvm-project/commit/24706cd73cd150543753a2e169c68a2c68da46a1
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/test/MachO/archive.s
    M lld/test/MachO/force-load.s

  Log Message:
  -----------
  [lld-macho] Avoid force-loading the same archive twice

We need to dedup archive loads (similar to what we do for dylib
loads).

I noticed this issue after building some Swift stuff that used
`-force_load_swift_libs`, as it caused some Swift archives to be loaded
many times.

Reviewed By: #lld-macho, thakis, MaskRay

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




More information about the All-commits mailing list