summaryrefslogtreecommitdiffhomepage
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-01 07:57:39 -0500
committermidipix <writeonce@midipix.org>2016-12-01 07:57:39 -0500
commit9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc (patch)
tree2a164f4e456f9e477fe107af4012d675decc4c7b /src/output
parent2486e675b16469a08b371006bacbe0f001e09eb6 (diff)
downloadperk-9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc.tar.bz2
perk-9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc.tar.xz
struct pe_{raw|meta}_sec_hdr: member name normalization.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/pe_output_export_symbols.c2
-rw-r--r--src/output/pe_output_image_sections.c6
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;