[all-commits] [llvm/llvm-project] 103e1d: [lld-macho] Unset ExportDynamic where possible for...

Jez Ng via All-commits all-commits at lists.llvm.org
Fri Feb 11 19:26:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 103e1d934a353ba233f854d992e5429106d3fbac
      https://github.com/llvm/llvm-project/commit/103e1d934a353ba233f854d992e5429106d3fbac
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/LTO.cpp
    M lld/test/MachO/lto-internalize.ll

  Log Message:
  -----------
  [lld-macho] Unset ExportDynamic where possible for LTO

By unsetting this property, we are now able to internalize more symbols
during LTO. I compared the output of `-save-temps` for both LLD and
ld64, and we now match ld64's behavior as far as `lto-internalize.ll` is
concerned.

(Thanks @smeenai for working on an initial version of this diff!)

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

Reviewed By: #lld-macho, thakis

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




More information about the All-commits mailing list