From 3ec8e90fae48f4cdf99a2575171c04631c2cf205 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 19 2016 13:21:29 +0000 Subject: PE format: added struct pe_coff_symbol, struct pe_coff_symbol_name. --- 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