diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/pe_output_export_symbols.c | 2 | ||||
-rw-r--r-- | src/output/pe_output_image_sections.c | 6 |
2 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 2319a17..6d98f75 100644 --- a/src/output/pe_output_export_symbols.c +++ b/src/output/pe_output_export_symbols.c @@ -52,7 +52,7 @@ int pe_output_export_symbols( return PERK_FILE_ERROR(dctx); mark = m->image.addr; - offset = m->hedata->virtual_addr - m->hedata->ptr_to_raw_data; + offset = m->hedata->sh_virtual_addr - m->hedata->sh_ptr_to_raw_data; symrva = (uint32_t *)(mark + m->edata.name_ptr_rva - offset); for (i=0; i<m->edata.num_of_name_ptrs; i++) diff --git a/src/output/pe_output_image_sections.c b/src/output/pe_output_image_sections.c index 67f0108..c269a8d 100644 --- a/src/output/pe_output_image_sections.c +++ b/src/output/pe_output_image_sections.c @@ -31,9 +31,9 @@ int pe_output_image_sections( for (i=0; i<meta->coff.cfh_num_of_sections; i++) if (fprintf(fout,"%s%s\n", dash, - meta->sectbl[i].long_name - ? meta->sectbl[i].long_name - : meta->sectbl[i].name) < 0) + meta->sectbl[i].sh_long_name + ? meta->sectbl[i].sh_long_name + : meta->sectbl[i].sh_name) < 0) return PERK_FILE_ERROR(dctx); return 0; |