[PATCH] D97007: [lld-macho] Define __mh_*_header synthetic symbols.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 12:31:58 PDT 2021


oontvoo added inline comments.


================
Comment at: lld/MachO/Driver.cpp:1049
+                       SymbolTablePresence::ForcedPresence,                    \
+                       /*isDefined*/ false);
+      switch (config->outputType) {
----------------
Unlike the `__dso_handle`, these `__mh_*_header`'s are implemented as undefined. (can see this by looking at the header section of a binary produced by ld64)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97007/new/

https://reviews.llvm.org/D97007



More information about the llvm-commits mailing list