[all-commits] [llvm/llvm-project] 595fc5: Reland "[lld-macho] Implement -load_hidden"

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Mon Jul 25 13:52:29 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 595fc59f742aeee398eb35ff69182a413a882317
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/DriverUtils.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/Options.td
    A lld/test/MachO/load-hidden.ll
    A lld/test/MachO/load-hidden.s
    M lld/test/MachO/reroot-path.s

  Log Message:
  Reland "[lld-macho] Implement -load_hidden"

This flag was introduced in ld64-609. It instructs the linker to link to
a static library while treating its symbols as if they had hidden
visibility. This is useful when building a dylib that links to static
libraries but we don't want the symbols from those to be exported.

Closes #51505

This reland adds bitcode file handling, so we won't get any compile
errors due to BitcodeFile::forceHidden being unused.

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

More information about the All-commits mailing list