summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-04 08:27:48 -0500
committermidipix <writeonce@midipix.org>2017-02-04 08:27:48 -0500
commitd94db54c664f6516437a01eba1b4595245262286 (patch)
tree6bcace38f77a172dc5599314f741aff430b4e365
parent822ef04f335206139e9dac15c96c70610e4e77ed (diff)
downloadperk-d94db54c664f6516437a01eba1b4595245262286.tar.bz2
perk-d94db54c664f6516437a01eba1b4595245262286.tar.xz
raw data: added struct pe_raw_coff_object_hdr.
-rw-r--r--include/perk/perk_structs.h11
1 files changed, 11 insertions, 0 deletions
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 */