[PATCH] D151801: [JITLink] Add missing vtable anchors
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 06:29:57 PDT 2023
sgraenitz created this revision.
sgraenitz added a reviewer: lhames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
sgraenitz requested review of this revision.
Herald added a project: LLVM.
This patch fixes the following missing symbols when linking JITLink in a shared library:
$ llvm-objdump -t libMyShared.so | grep _ZTVN4llvm7jitlink
0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE
0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink16EHFrameRegistrarE
0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink14JITLinkContextE
0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink22InProcessMemoryManagerE
0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink20JITLinkMemoryManagerE
These symbols exist in the static lib, e.g.:
$ llvm-objdump -t lib/libLLVMJITLink.a | grep _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE
0000000000000038 g O .data.rel.ro 0000000000000038 _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151801
Files:
llvm/include/llvm/ExecutionEngine/JITLink/EHFrameSupport.h
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h
llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151801.527014.patch
Type: text/x-patch
Size: 3626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230531/cfffefb1/attachment.bin>
More information about the llvm-commits
mailing list