summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/perk/perk_meta.h2
-rw-r--r--include/perk/perk_structs.h2
-rw-r--r--src/logic/pe_get_image_meta.c4
-rw-r--r--src/output/pe_output_image_symbols.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index 929e8ef..68e722b 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -249,7 +249,7 @@ struct pe_meta_import_hdr {
/* coff: symbol table entry */
-struct pe_meta_coff_sym_entry {
+struct pe_meta_coff_symbol {
char name[24];
char * long_name;
uint32_t value;
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index eecaba6..0634a02 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -287,7 +287,7 @@ struct pe_hint_name_entry {
};
-struct pe_coff_sym_entry {
+struct pe_coff_symbol {
unsigned char name [0x08]; /* 0x00 */
unsigned char value [0x04]; /* 0x08 */
unsigned char section_number [0x02]; /* 0x0c */
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)