From 7ec070f975589374d651b391e55e4f073dbe1fab Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 15 Nov 2016 20:34:24 -0500 Subject: PE format: added struct pe_coff_sym_entry, struct pe_meta_coff_sym_entry. --- include/perk/perk_meta.h | 12 ++++++++++++ include/perk/perk_structs.h | 10 ++++++++++ 2 files changed, 22 insertions(+) (limited to 'include') 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 -- cgit v1.2.3