[all-commits] [llvm/llvm-project] 272bf0: [lld-macho] Add support for exporting no symbols

Keith Smiley via All-commits all-commits at lists.llvm.org
Wed Jun 15 15:07:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 272bf0fc41e6a50f89dd01b55a33a3aabcdaf5a8
      https://github.com/llvm/llvm-project/commit/272bf0fc41e6a50f89dd01b55a33a3aabcdaf5a8
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/test/MachO/export-options.s

  Log Message:
  -----------
  [lld-macho] Add support for exporting no symbols

As an optimization for ld64 sometimes it can be useful to not export any
symbols for top level binaries that don't need any exports, to do this
you can pass `-exported_symbols_list /dev/null`, or new with Xcode 14
(ld64 816) there is a `-no_exported_symbols` flag for the same behavior.
This reproduces this behavior where previously an empty exported symbols
list file would have been ignored.

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




More information about the All-commits mailing list