From d94db54c664f6516437a01eba1b4595245262286 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 4 Feb 2017 08:27:48 -0500 Subject: raw data: added struct pe_raw_coff_object_hdr. --- include/perk/perk_structs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h index 5105cd1..6cacac8 100644 --- a/include/perk/perk_structs.h +++ b/include/perk/perk_structs.h @@ -40,6 +40,17 @@ struct pe_raw_coff_image_hdr { }; +struct pe_raw_coff_object_hdr { + unsigned char cfh_machine [0x02]; /* 0x00 */ + unsigned char cfh_num_of_sections [0x02]; /* 0x02 */ + unsigned char cfh_time_date_stamp [0x04]; /* 0x04 */ + unsigned char cfh_ptr_to_sym_tbl [0x04]; /* 0x08 */ + unsigned char cfh_num_of_syms [0x04]; /* 0x0c */ + unsigned char cfh_size_of_opt_hdr [0x02]; /* 0x10 */ + unsigned char cfh_characteristics [0x02]; /* 0x12 */ +}; + + struct pe_raw_opt_hdr_std { unsigned char coh_magic [0x02]; /* 0x00 */ unsigned char coh_major_linker_ver [0x01]; /* 0x02 */ -- cgit v1.2.3