From 0d7eba4ac8a48e88adef2b78daefb39c41bbb575 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 14 Jul 2018 22:21:37 -0400 Subject: PE format: added coff symbol record, string table, and auxiliary record defs. --- include/perk/perk_structs.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'include') diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h index 6cacac8..09f4105 100644 --- a/include/perk/perk_structs.h +++ b/include/perk/perk_structs.h @@ -327,6 +327,29 @@ struct pe_raw_coff_symbol_name { }; +struct pe_raw_coff_strtbl { + unsigned char cst_size [0x04]; /* 0x00 */ + unsigned char cst_data[]; /* 0x04 */ +}; + + +struct pe_raw_coff_reloc { + unsigned char rel_rva [0x04]; /* 0x00 */ + unsigned char rel_sym [0x04]; /* 0x04 */ + unsigned char rel_type [0x02]; /* 0x08 */ +}; + + +struct pe_raw_aux_rec_section { + unsigned char aux_size [0x04]; /* 0x00 */ + unsigned char aux_num_of_relocs [0x02]; /* 0x04 */ + unsigned char aux_num_of_line_nums [0x02]; /* 0x06 */ + unsigned char aux_check_sum [0x04]; /* 0x08 */ + unsigned char aux_number [0x02]; /* 0x0c */ + unsigned char aux_selection [0x01]; /* 0x0e */ + unsigned char aux_pad [0x03]; /* 0x0f */ +}; + #ifdef __cplusplus } #endif -- cgit v1.2.3