summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-14 22:21:37 -0400
committermidipix <writeonce@midipix.org>2018-07-14 22:24:10 -0400
commit0d7eba4ac8a48e88adef2b78daefb39c41bbb575 (patch)
tree0636c3ef5d3f2df18baf665bd79b82c312057d24
parent6851eb440b25b9e51662510d8ae5132ce4c242be (diff)
downloadperk-0d7eba4ac8a48e88adef2b78daefb39c41bbb575.tar.bz2
perk-0d7eba4ac8a48e88adef2b78daefb39c41bbb575.tar.xz
PE format: added coff symbol record, string table, and auxiliary record defs.
-rw-r--r--include/perk/perk_structs.h23
1 files changed, 23 insertions, 0 deletions
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