summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-04 08:34:44 -0500
committermidipix <writeonce@midipix.org>2017-02-04 08:34:44 -0500
commit9573d44d31aef2389807bd3d81038304c33da90d (patch)
treefb6d13971fd9da94664f3621c3b4e38c8ca80835 /include
parent02863d5d32f2f3693d3e0fbcfa325e65420717cd (diff)
downloadpemagine-9573d44d31aef2389807bd3d81038304c33da90d.tar.bz2
pemagine-9573d44d31aef2389807bd3d81038304c33da90d.tar.xz
raw data: added struct pe_raw_coff_object_hdr.
Diffstat (limited to 'include')
-rw-r--r--include/pemagine/pe_structs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/pemagine/pe_structs.h b/include/pemagine/pe_structs.h
index 480b625..45ea0da 100644
--- a/include/pemagine/pe_structs.h
+++ b/include/pemagine/pe_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 */