summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-17 20:44:39 -0500
committermidipix <writeonce@midipix.org>2016-11-17 20:45:49 -0500
commita24b2d75a352eafe620080d3c613d12245c7584d (patch)
tree457015d7ea6031905e9c5bff9145a113862d10ea /src
parent9770d49cd8836910508683290c7c835ad15d50be (diff)
downloadperk-a24b2d75a352eafe620080d3c613d12245c7584d.tar.bz2
perk-a24b2d75a352eafe620080d3c613d12245c7584d.tar.xz
PE format: renamed struct pe_coff_sym_entry --> struct pe_coff_symbol.
Diffstat (limited to 'src')
-rw-r--r--src/logic/pe_get_image_meta.c4
-rw-r--r--src/output/pe_output_image_symbols.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index ba3f560..d262d25 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -190,10 +190,10 @@ int pe_get_image_meta(
m,PERK_CUSTOM_ERROR(dctx,ret));
mark = (const unsigned char *)image->addr + m->coff.ptr_to_sym_tbl;
- mark += m->coff.num_of_syms * sizeof(struct pe_coff_sym_entry);
+ mark += m->coff.num_of_syms * sizeof(struct pe_coff_symbol);
m->coff.ptr_to_string_tbl = m->coff.ptr_to_sym_tbl;
- m->coff.ptr_to_string_tbl += m->coff.num_of_syms * sizeof(struct pe_coff_sym_entry);
+ m->coff.ptr_to_string_tbl += m->coff.num_of_syms * sizeof(struct pe_coff_symbol);
m->coff.size_of_string_tbl = pe_read_long(mark);
mark = &m->acoff->signature[0];
diff --git a/src/output/pe_output_image_symbols.c b/src/output/pe_output_image_symbols.c
index da4bf8c..f55adff 100644
--- a/src/output/pe_output_image_symbols.c
+++ b/src/output/pe_output_image_symbols.c
@@ -19,7 +19,7 @@ int pe_output_image_symbols(
{
unsigned i,bias;
uint32_t roffset;
- struct pe_coff_sym_entry * symtbl;
+ struct pe_coff_symbol * symtbl;
char buf[24];
char * mark;
const char * name;
@@ -36,7 +36,7 @@ int pe_output_image_symbols(
}
mark = (char *)meta->image.addr;
- symtbl = (struct pe_coff_sym_entry *)(mark + meta->coff.ptr_to_sym_tbl);
+ symtbl = (struct pe_coff_symbol *)(mark + meta->coff.ptr_to_sym_tbl);
for (i=0,bias=0; i<meta->coff.num_of_syms; i++,bias=0) {
if (symtbl[i].storage_class[0] == PE_IMAGE_SYM_CLASS_FILE)