[PATCH] D57463: Add a module pass for order file instrumentation

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 19:01:20 PDT 2021


thakis added a comment.
Herald added a subscriber: ormris.

Hi,

is there any documentation on how to use this? I see that clang has a `-forder-file-instrumentation` switch to enable this. But what do I do after I enabled it? Run the instrumented program and then…? From the name, I'm guessing maybe the idea is that this will produce an order file?

Part of why I'm asking is because I'm trying to teach lld/mac about `section$start$` symbols, but with a candidate patch I'm still getting `undefined symbol: section$start$__DATA$__llvm_orderfile`. It's well possible my patch is wrong, but I don't see what's supposed to create the `__llvm_orderfile` section (https://bugs.chromium.org/p/chromium/issues/detail?id=1220128#c10 has the candidate patch).

Thanks,
Nico


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57463



More information about the llvm-commits mailing list