[PATCH] D105210: [lld-macho] Ignore debug symbols for now.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 1 14:45:22 PDT 2021


oontvoo added a comment.

In D105210#2851593 <https://reviews.llvm.org/D105210#2851593>, @int3 wrote:

> test plz

Added test (with a checked-in .o file, unless someone can tell me a way to produce it within the test :)  lld doesn't support `-r` yet )

> (I'm genuinely curious about how these symbols are typically generated)

You can produce it with:

  echo "int main() {return 1;}" > test.cc
  clang -c -g -o test.o test.c
  ld -r -o test2.o test.o;
  ld64.lld.darwinnew -platform_version macos 11.3 11.0  -arch x86_64 test2.o




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105210



More information about the llvm-commits mailing list