[Lldb-commits] [PATCH] D31369: PluginUnwindAssemblyX86: add missing linkage to MCDisasm
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 25 07:02:21 PDT 2017
mgorny created this revision.
mgorny added a project: LLDB.
Add missing linkage of the lldbPluginUnwindAssemblyX86 to LLVMMCDisasm
library. This fixes the following build failure when linking against
shared libraries:
lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::instruction_length(unsigned char*, int&): error: undefined reference to 'LLVMDisasmInstruction'
lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::~x86AssemblyInspectionEngine(): error: undefined reference to 'LLVMDisasmDispose'
lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::x86AssemblyInspectionEngine(lldb_private::ArchSpec const&): error: undefined reference to 'LLVMCreateDisasm'
Repository:
rL LLVM
https://reviews.llvm.org/D31369
Files:
source/Plugins/UnwindAssembly/x86/CMakeLists.txt
Index: source/Plugins/UnwindAssembly/x86/CMakeLists.txt
===================================================================
--- source/Plugins/UnwindAssembly/x86/CMakeLists.txt
+++ source/Plugins/UnwindAssembly/x86/CMakeLists.txt
@@ -10,4 +10,5 @@
LINK_COMPONENTS
Support
MC
+ MCDisassembler
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31369.93043.patch
Type: text/x-patch
Size: 313 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170325/f39ff4e3/attachment.bin>
More information about the lldb-commits
mailing list