summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-15 20:34:24 -0500
committermidipix <writeonce@midipix.org>2016-11-15 20:34:24 -0500
commit7ec070f975589374d651b391e55e4f073dbe1fab (patch)
tree8d91d2402ca5a8aa71cccdae71dcab66bdaa0e61 /include
parent204e71196db007f92f76ac202a12b7a5b8309272 (diff)
downloadperk-7ec070f975589374d651b391e55e4f073dbe1fab.tar.bz2
perk-7ec070f975589374d651b391e55e4f073dbe1fab.tar.xz
PE format: added struct pe_coff_sym_entry, struct pe_meta_coff_sym_entry.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk_meta.h12
-rw-r--r--include/perk/perk_structs.h10
2 files changed, 22 insertions, 0 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index 2232085..f20c6ac 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -246,6 +246,18 @@ struct pe_meta_import_hdr {
};
+/* coff: symbol table entry */
+struct pe_meta_coff_sym_entry {
+ char name[16];
+ char * long_name;
+ uint32_t value;
+ int16_t section_number;
+ uint16_t type;
+ unsigned char storage_class;
+ unsigned char num_of_aux_symbols;
+};
+
+
#ifdef __cplusplus
}
#endif
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index 4a03a27..eecaba6 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -287,6 +287,16 @@ struct pe_hint_name_entry {
};
+struct pe_coff_sym_entry {
+ unsigned char name [0x08]; /* 0x00 */
+ unsigned char value [0x04]; /* 0x08 */
+ unsigned char section_number [0x02]; /* 0x0c */
+ unsigned char type [0x02]; /* 0x0e */
+ unsigned char storage_class [0x01]; /* 0x10 */
+ unsigned char num_of_aux_symbols [0x01]; /* 0x11 */
+};
+
+
#ifdef __cplusplus
}
#endif