diff options
author | midipix <writeonce@midipix.org> | 2016-11-19 08:21:29 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-19 08:21:29 -0500 |
commit | 3ec8e90fae48f4cdf99a2575171c04631c2cf205 (patch) | |
tree | a1a1e82085818f6abf70bf036ebd0c93e4ce1330 | |
parent | ab2a362dbf30243826d4b9645088ae50c7f944fc (diff) | |
download | pemagine-3ec8e90fae48f4cdf99a2575171c04631c2cf205.tar.bz2 pemagine-3ec8e90fae48f4cdf99a2575171c04631c2cf205.tar.xz |
PE format: added struct pe_coff_symbol, struct pe_coff_symbol_name.
-rw-r--r-- | include/pemagine/pe_structs.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 |