[PATCH] D131833: [ORC][COFF] Introduce DLLImportDefinitionGenerator.

Sunho Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 13 03:02:22 PDT 2022


sunho created this revision.
sunho added reviewers: lhames, sgraenitz.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
sunho requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This class will be used to properly solve the `__imp_` symbol and jump-thunk generation issues. It is assumed to be the last definition generator to be called, and as it's the last generator the only symbols remaining in the lookup set are the symbols that are supposed to be queried outside this jitdylib. Instead of just letting them through, we issue another lookup invocation and fetch the allocated addresses, and then create jitlink graph containing `__imp_` GOT symbols and jump-thunks targetting the fetched addresses.


https://reviews.llvm.org/D131833

Files:
  llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
  llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131833.452396.patch
Type: text/x-patch
Size: 7215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220813/ecb932e7/attachment.bin>


More information about the llvm-commits mailing list