diff options
author | midipix <writeonce@midipix.org> | 2017-12-13 10:51:31 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-12-13 11:24:14 -0500 |
commit | ed06fbad97e24dea20e4240054f1cfeb15b15e92 (patch) | |
tree | a4c35a4c8beb782ebe56748e963066f62aa63eb5 /src/output | |
parent | 068b8d92e7dbbda4dac003ef47d45b8beb4b5ad8 (diff) | |
download | perk-ed06fbad97e24dea20e4240054f1cfeb15b15e92.tar.bz2 perk-ed06fbad97e24dea20e4240054f1cfeb15b15e92.tar.xz |
refactor: struct pe_raw_image: members are now map-prefixed.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/pe_output_export_symbols.c | 2 | ||||
-rw-r--r-- | src/output/pe_output_image_strings.c | 2 | ||||
-rw-r--r-- | src/output/pe_output_image_symbols.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/output/pe_output_export_symbols.c b/src/output/pe_output_export_symbols.c index 1ddef14..700822c 100644 --- a/src/output/pe_output_export_symbols.c +++ b/src/output/pe_output_export_symbols.c @@ -51,7 +51,7 @@ int pe_output_export_symbols( if ((pretty_header(cctx,fout)) < 0) return PERK_FILE_ERROR(dctx); - mark = m->r_image.addr; + mark = m->r_image.map_addr; offset = m->h_edata->sh_virtual_addr - m->h_edata->sh_ptr_to_raw_data; symrva = (uint32_t *)(mark + m->m_edata.eh_name_ptr_rva - offset); diff --git a/src/output/pe_output_image_strings.c b/src/output/pe_output_image_strings.c index 58fdeaa..51c7ef9 100644 --- a/src/output/pe_output_image_strings.c +++ b/src/output/pe_output_image_strings.c @@ -32,7 +32,7 @@ int pe_output_image_strings( dash = "- "; } - mark = (char *)meta->r_image.addr; + mark = (char *)meta->r_image.map_addr; mark += meta->m_coff.cfh_ptr_to_str_tbl; cap = mark + meta->m_coff.cfh_size_of_str_tbl; diff --git a/src/output/pe_output_image_symbols.c b/src/output/pe_output_image_symbols.c index 7a71b27..6919e5a 100644 --- a/src/output/pe_output_image_symbols.c +++ b/src/output/pe_output_image_symbols.c @@ -33,13 +33,13 @@ int pe_output_image_symbols( dash = "- "; } - mark = (char *)meta->r_image.addr; + mark = (char *)meta->r_image.map_addr; symtbl = (struct pe_raw_coff_symbol *)(mark + meta->m_coff.cfh_ptr_to_sym_tbl); for (i=0; i<meta->m_coff.cfh_num_of_syms; i++) { pe_read_coff_symbol( &symtbl[i],&symrec, - &meta->m_coff,meta->r_image.addr); + &meta->m_coff,meta->r_image.map_addr); if (fprintf(fout,"%s%s\n", dash, |