[Lldb-commits] [PATCH] D19603: Fix entry point lookup for ObjectFilePECOFF.
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 27 10:36:32 PDT 2016
sas created this revision.
sas added a reviewer: zturner.
sas added a subscriber: lldb-commits.
http://reviews.llvm.org/D19603
Files:
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Index: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -825,7 +825,7 @@
return m_entry_point_address;
SectionList *section_list = GetSectionList();
- addr_t offset = m_coff_header_opt.entry;
+ addr_t offset = m_coff_header_opt.entry + m_coff_header_opt.image_base;
if (!section_list)
m_entry_point_address.SetOffset(offset);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19603.55258.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160427/bc71ef50/attachment.bin>
More information about the lldb-commits
mailing list