summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-30 19:09:35 -0500
committermidipix <writeonce@midipix.org>2016-11-30 19:09:35 -0500
commitda15f0c6fa6f1feed4951a5415d68e3de2b144a8 (patch)
tree275be2a454851e31e1bd74e0da0a974a19caa10c /src/output
parent511ffa02175b10bf934f57e95f77e3a410d587fb (diff)
downloadperk-da15f0c6fa6f1feed4951a5415d68e3de2b144a8.tar.bz2
perk-da15f0c6fa6f1feed4951a5415d68e3de2b144a8.tar.xz
struct pe_{raw|meta}_coff_file_hdr: member name normalization.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/pe_output_image_sections.c2
-rw-r--r--src/output/pe_output_image_strings.c4
-rw-r--r--src/output/pe_output_image_symbols.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/output/pe_output_image_sections.c b/src/output/pe_output_image_sections.c
index b538cdf..67f0108 100644
--- a/src/output/pe_output_image_sections.c
+++ b/src/output/pe_output_image_sections.c
@@ -28,7 +28,7 @@ int pe_output_image_sections(
dash = "- ";
}
- for (i=0; i<meta->coff.num_of_sections; i++)
+ for (i=0; i<meta->coff.cfh_num_of_sections; i++)
if (fprintf(fout,"%s%s\n",
dash,
meta->sectbl[i].long_name
diff --git a/src/output/pe_output_image_strings.c b/src/output/pe_output_image_strings.c
index a2b16fa..b0555eb 100644
--- a/src/output/pe_output_image_strings.c
+++ b/src/output/pe_output_image_strings.c
@@ -33,9 +33,9 @@ int pe_output_image_strings(
}
mark = (char *)meta->image.addr;
- mark += meta->coff.ptr_to_string_tbl;
+ mark += meta->coff.cfh_ptr_to_str_tbl;
- cap = mark + meta->coff.size_of_string_tbl;
+ cap = mark + meta->coff.cfh_size_of_str_tbl;
mark += sizeof(uint32_t);
for (ch=mark; ch<cap; ) {
diff --git a/src/output/pe_output_image_symbols.c b/src/output/pe_output_image_symbols.c
index 3dc7eb3..7282436 100644
--- a/src/output/pe_output_image_symbols.c
+++ b/src/output/pe_output_image_symbols.c
@@ -34,9 +34,9 @@ int pe_output_image_symbols(
}
mark = (char *)meta->image.addr;
- symtbl = (struct pe_raw_coff_symbol *)(mark + meta->coff.ptr_to_sym_tbl);
+ symtbl = (struct pe_raw_coff_symbol *)(mark + meta->coff.cfh_ptr_to_sym_tbl);
- for (i=0; i<meta->coff.num_of_syms; i++) {
+ for (i=0; i<meta->coff.cfh_num_of_syms; i++) {
pe_read_coff_symbol(
&symtbl[i],&symrec,
&meta->coff,meta->image.addr);