[all-commits] [llvm/llvm-project] 4a1224: [lld/mac] Honor REFERENCED_DYAMICALLY, set it on _...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon May 17 11:22:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a12248ee27631c86c2c29d203b22599339ced92
      https://github.com/llvm/llvm-project/commit/4a12248ee27631c86c2c29d203b22599339ced92
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/MergedOutputSection.cpp
    M lld/MachO/SymbolTable.cpp
    M lld/MachO/SymbolTable.h
    M lld/MachO/Symbols.h
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/UnwindInfoSection.cpp
    A lld/test/MachO/referenced-dynamically.s
    M lld/test/MachO/stabs.s
    M lld/test/MachO/symtab.s

  Log Message:
  -----------
  [lld/mac] Honor REFERENCED_DYAMICALLY, set it on __mh_execute_header

Has the effect that `__mh_execute_header` stays in the symbol table of
outputs even after running `strip` on the output. I don't know if that's
important for anything -- my motivation for the patch is just is to make
the output more similar to ld64.

(Corresponds to symbolTableInAndNeverStrip in ld64.)

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




More information about the All-commits mailing list