diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-03 16:36:59 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-03 16:36:59 +0200 |
| commit | 30edaff767b1b742c71a1b72c7cd60009f1dfa46 (patch) | |
| tree | 2c9dc6f4019cf8a2cd70a251ae1b42f7a88f957c | |
| parent | 9347995237a5a94f64d3a39490754f4c62befc32 (diff) | |
| download | miasm-30edaff767b1b742c71a1b72c7cd60009f1dfa46.tar.gz miasm-30edaff767b1b742c71a1b72c7cd60009f1dfa46.zip | |
Jitload: vm2pe default min_addr is the first section rva
| -rw-r--r-- | miasm2/jitter/jitload.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm2/jitter/jitload.py b/miasm2/jitter/jitload.py index 6ff9f0f8..42b7fe87 100644 --- a/miasm2/jitter/jitload.py +++ b/miasm2/jitter/jitload.py @@ -788,11 +788,12 @@ class jitter: def vm2pe(myjit, fname, libs=None, e_orig=None, - max_addr=1 << 64, min_addr=0x401000, + max_addr=1 << 64, min_addr=None, min_section_offset=0x1000, img_base=None, added_funcs=None): mye = pe_init.PE() - + if min_addr is None: + min_addr=e_orig.rva2virt(e_orig.SHList[0].addr) if img_base is None: img_base = e_orig.NThdr.ImageBase |