don't put in relocations ?!

This commit is contained in:
Folkert 2022-10-29 17:01:51 +02:00
parent ae1a9e4dd6
commit a9d36431ba
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1361,9 +1361,11 @@ fn relocate_dummy_dll_entries(executable: &mut [u8], md: &PeMetadata) {
let thunks_offset_in_block = thunks_start_va % BLOCK_SIZE;
let thunks_relocation_block_va = thunks_start_va - thunks_offset_in_block;
let relocations: Vec<_> = (0..md.dynamic_relocations.name_by_virtual_address.len())
.map(|i| (thunks_offset_in_block as usize + 2 * i) as u16)
.collect();
let relocations = vec![];
// let relocations: Vec<_> = (0..md.dynamic_relocations.name_by_virtual_address.len())
// .map(|i| (thunks_offset_in_block as usize + 2 * i) as u16)
// .collect();
let base_relocations = write_image_base_relocation(
executable,