[all-commits] [llvm/llvm-project] 4f0862: [lld-macho] Support re-exports of individual symbols

Jez Ng via All-commits all-commits at lists.llvm.org
Mon Mar 27 13:39:57 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f086218ddc3862b695abc986b2387db55e89da9
  Author: Jez Ng <jezng at fb.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/ExportTrie.cpp
    M lld/MachO/Symbols.h
    M lld/MachO/SyntheticSections.cpp
    M lld/test/MachO/export-options.s

  Log Message:
  [lld-macho] Support re-exports of individual symbols

Specifically, we support this:

  ld64.lld -dylib foo.o libbar.dylib -exported_symbol _bar -o libfoo.dylib

Where `_bar` is defined in libbar.dylib.

Reviewed By: #lld-macho, smeenai

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

More information about the All-commits mailing list