[all-commits] [llvm/llvm-project] 0bc100: [lld-macho] Add support for -alias

Keith Smiley via All-commits all-commits at lists.llvm.org
Tue Jul 19 13:57:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bc100986c2502eee8839242fd45894dac67f441
      https://github.com/llvm/llvm-project/commit/0bc100986c2502eee8839242fd45894dac67f441
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/MachO/SymbolTable.cpp
    M lld/MachO/SymbolTable.h
    A lld/test/MachO/aliases.s

  Log Message:
  -----------
  [lld-macho] Add support for -alias

This creates a symbol alias similar to --defsym in the elf linker. This
is used by swiftpm for all executables, so it's useful to support. This
doesn't implement -alias_list but that could be done pretty easily as
needed.

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




More information about the All-commits mailing list