[PATCH] D97339: [lli] Add --jit-linker command line argument

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 2 10:47:21 PST 2021


thakis added a comment.

> (Sorry, this question would've been a better fit on D97335 <https://reviews.llvm.org/D97335>  :) Still happy for pointers, though.)

I think I figured out the linux bit. `SelfTargetProcessControl::lookupSymbols` strips GlobalManglingPrefix and the test actually looks up llvm_orc_registerJITLoaderGDBWrapper without underscore. For dlsym() to find this in dlopen(NULL, ...), llvm-jitlink needs to be linked with -rdynamic. I hope it's similarly straightforward on Windows...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97339



More information about the llvm-commits mailing list