From a9d36431ba2a5a12d6a331b56e13d7eb976d38d2 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 29 Oct 2022 17:01:51 +0200 Subject: [PATCH] don't put in relocations ?! --- crates/linker/src/pe.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/linker/src/pe.rs b/crates/linker/src/pe.rs index 840bb9842c..2ccdb1f56f 100644 --- a/crates/linker/src/pe.rs +++ b/crates/linker/src/pe.rs @@ -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,