From 3ec8e90fae48f4cdf99a2575171c04631c2cf205 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 08:21:29 -0500 Subject: PE format: added struct pe_coff_symbol, struct pe_coff_symbol_name. --- include/pemagine/pe_structs.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') 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 -- cgit v1.2.3