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/output/pe_output_image_symbols.c2
-rw-r--r--src/reader/pe_read_coff_symbol.c8
4 files changed, 7 insertions, 7 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index 909bd54..b686d13 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -257,7 +257,7 @@ struct pe_meta_coff_symbol {
int16_t cs_section_number;
uint16_t cs_type;
unsigned char cs_storage_class;
- unsigned char cs_num_of_aux_symbols;
+ unsigned char cs_num_of_aux_recs;
const void * cs_aux_recs;
char cs_name_buf[24];
};
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index 9ffb480..56264ae 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -314,7 +314,7 @@ struct pe_raw_coff_symbol {
unsigned char cs_section_number [0x02]; /* 0x0c */
unsigned char cs_type [0x02]; /* 0x0e */
unsigned char cs_storage_class [0x01]; /* 0x10 */
- unsigned char cs_num_of_aux_symbols [0x01]; /* 0x11 */
+ unsigned char cs_num_of_aux_recs [0x01]; /* 0x11 */
};
diff --git a/src/output/pe_output_image_symbols.c b/src/output/pe_output_image_symbols.c
index 8305b1c..6c8f4dc 100644
--- a/src/output/pe_output_image_symbols.c
+++ b/src/output/pe_output_image_symbols.c
@@ -46,7 +46,7 @@ int pe_output_image_symbols(
if (pe_dprintf(fdout,"%s%s\n",dash,symrec.cs_name) < 0)
return PERK_FILE_ERROR(dctx);
- i += symtbl[i].cs_num_of_aux_symbols[0];
+ i += symtbl[i].cs_num_of_aux_recs[0];
}
return 0;
diff --git a/src/reader/pe_read_coff_symbol.c b/src/reader/pe_read_coff_symbol.c
index 41dc071..9e2dc89 100644
--- a/src/reader/pe_read_coff_symbol.c
+++ b/src/reader/pe_read_coff_symbol.c
@@ -27,23 +27,23 @@ int pe_read_coff_symbol(
m->cs_section_number = pe_read_short(p->cs_section_number);
m->cs_type = pe_read_short(p->cs_type);
m->cs_storage_class = p->cs_storage_class[0];
- m->cs_num_of_aux_symbols = p->cs_num_of_aux_symbols[0];
+ m->cs_num_of_aux_recs = p->cs_num_of_aux_recs[0];
m->cs_aux_recs = 0;
memset(m->cs_name_buf,0,sizeof(m->cs_name_buf));
- if (m->cs_num_of_aux_symbols)
+ if (m->cs_num_of_aux_recs)
m->cs_aux_recs = &p[1].cs_name[0];
if (p->cs_storage_class[0] == PE_IMAGE_SYM_CLASS_FILE)
- if (p->cs_num_of_aux_symbols[0])
+ if (p->cs_num_of_aux_recs[0])
if (!p[1].cs_value[0])
bias = 1;
p += bias;
if (!bias && (p->cs_storage_class[0] == PE_IMAGE_SYM_CLASS_FILE)
- && p->cs_num_of_aux_symbols[0]) {
+ && p->cs_num_of_aux_recs[0]) {
memcpy(m->cs_name_buf,p[1].cs_name,sizeof(*p));
} else if (p->cs_name[0]) {