[all-commits] [llvm/llvm-project] 4c79e1: [lld-macho] Implement -load_hidden

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Mon Jul 25 11:59:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c79e1a3f4eb790f40239833ae237e828ce07386
      https://github.com/llvm/llvm-project/commit/4c79e1a3f4eb790f40239833ae237e828ce07386
  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.s
    M lld/test/MachO/reroot-path.s

  Log Message:
  -----------
  [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

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




More information about the All-commits mailing list