[PATCH] D89285: [lld-macho] Emit local symbols in symtab; record metadata in LC_DYSYMTAB

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 14:15:03 PST 2020


clayborg added a comment.

In D89285#2332489 <https://reviews.llvm.org/D89285#2332489>, @compnerd wrote:

> Given that Darwin has fully moved to DWARF at this point, why STABS?

STABS are deprecated for normal actually containing debug info, but they are used for the DWARF in .o file format. This allows the linker to not have to link DWARF from all of the .o files, it just needs to emit a debug map, using STAB entries in the symbol table. Since the entries are debug entries, "strip" can strip the debug map out prior to shipping.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89285



More information about the llvm-commits mailing list