927305
struct pe_raw_data_dirs: member name normalization.
@@ -99,23 +99,23 @@ struct pe_raw_opt_hdr_dirs {
|
|
99
99
|
};
|
100
100
|
|
101
101
|
struct pe_raw_data_dirs {
|
102
|
-
unsigned char
|
103
|
-
unsigned char
|
104
|
-
unsigned char
|
105
|
-
unsigned char
|
106
|
-
unsigned char
|
107
|
-
unsigned char
|
108
|
-
unsigned char
|
109
|
-
unsigned char
|
110
|
-
unsigned char
|
111
|
-
unsigned char
|
112
|
-
unsigned char
|
113
|
-
unsigned char
|
114
|
-
unsigned char
|
115
|
-
unsigned char
|
116
|
-
unsigned char
|
117
|
-
unsigned char
|
118
|
-
unsigned char
|
102
|
+
unsigned char coh_rva_and_sizes [0x04];
|
103
|
+
unsigned char coh_export_tbl [0x08];
|
104
|
+
unsigned char coh_import_tbl [0x08];
|
105
|
+
unsigned char coh_resource_tbl [0x08];
|
106
|
+
unsigned char coh_exception_tbl [0x08];
|
107
|
+
unsigned char coh_certificate_tbl [0x08];
|
108
|
+
unsigned char coh_base_reloc_tbl [0x08];
|
109
|
+
unsigned char coh_debug [0x08];
|
110
|
+
unsigned char coh_arch [0x08];
|
111
|
+
unsigned char coh_global_ptr [0x08];
|
112
|
+
unsigned char coh_tls_tbl [0x08];
|
113
|
+
unsigned char coh_load_config_tbl [0x08];
|
114
|
+
unsigned char coh_bound_import [0x08];
|
115
|
+
unsigned char coh_iat [0x08];
|
116
|
+
unsigned char coh_delay_import_descriptor [0x08];
|
117
|
+
unsigned char coh_clr_runtime_hdr [0x08];
|
118
|
+
unsigned char coh_reserved [0x08];
|
119
119
|
};
|
120
120
|
|
121
121
|
struct pe_raw_opt_hdr_32 {
|
@@ -20,12 +20,12 @@ void * pe_get_image_special_hdr_addr(const void * base, uint32_t ordinal, uint32
|
|
20
20
|
if (!(dirs = pe_get_image_data_dirs_addr(base)))
|
21
21
|
return 0;
|
22
22
|
|
23
|
-
count = (uint32_t *)dirs->
|
23
|
+
count = (uint32_t *)dirs->coh_rva_and_sizes;
|
24
24
|
|
25
25
|
if (*count < (ordinal+1))
|
26
26
|
return 0;
|
27
27
|
|
28
|
-
dir = (struct pe_block *)dirs->
|
28
|
+
dir = (struct pe_block *)dirs->coh_export_tbl;
|
29
29
|
dir += ordinal;
|
30
30
|
|
31
31
|
if (sec_size)
|