From c79a955e4fe1cad85b526bdc4af86d1226f99329 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 4 Mar 2015 15:15:00 +0100 Subject: [PATCH] readSections() already in Disassembler constructor this is the one part we also need when loading from a saved file --- src/disassembler/llvm/LLVMDisassembler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index abfafa4..b40cdd4 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -151,12 +151,13 @@ LLVMDisassembler::LLVMDisassembler(const std::string& filename, std::unique_ptr OD( new MCObjectDisassembler(*o, *DisAsm, *MIA)); Mod.reset(OD->buildModule(false)); + + readSections(); } template void LLVMDisassembler::start() { readSymbols(); - readSections(); disassemble(); readDynamicSymbols(); } -- 2.39.5