diff --git a/include/pemagine/pe_structs.h b/include/pemagine/pe_structs.h index 9e368c0..2baabb0 100644 --- a/include/pemagine/pe_structs.h +++ b/include/pemagine/pe_structs.h @@ -287,6 +287,26 @@ struct pe_hint_name_entry { }; +struct pe_coff_symbol { + 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 */ +}; + +struct pe_coff_symbol_name { + union { + unsigned char short_name [0x08]; /* 0x00 */ + + struct { + unsigned char zeroes [0x04]; /* 0x00 */ + unsigned char offset [0x04]; /* 0x04 */ + } long_name; + }; +}; + #ifdef __cplusplus } #endif