[PATCH] D75884: [RuntimeDyld][COFF] Build stubs for COFF dllimport symbols.
Lang Hames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 17:50:02 PDT 2020
lhames created this revision.
lhames added a reviewer: compnerd.
Herald added subscribers: ributzka, hiraditya.
Herald added a project: LLVM.
Enables JIT-linking by RuntimeDyld of COFF objects that contain references to
dllimport symbols. This is done by recognizing symbols that start with the
reserved "__imp_" prefix and building a pointer entry to the target symbol in
the stubs area of the section. References to the "__imp_" symbol are updated to
point to this pointer.
Work in progress: The generic code is in place, but only RuntimeDyldCOFFX86_64
and RuntimeDyldCOFFI386 have been updated to look for and update references to
dllimport symbols.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75884
Files:
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFAArch64.h
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75884.249253.patch
Type: text/x-patch
Size: 10284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200310/898e13c0/attachment.bin>
More information about the llvm-commits
mailing list