mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
don't put in relocations ?!
This commit is contained in:
parent
ae1a9e4dd6
commit
a9d36431ba
1 changed files with 5 additions and 3 deletions
|
@ -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_offset_in_block = thunks_start_va % BLOCK_SIZE;
|
||||||
let thunks_relocation_block_va = thunks_start_va - thunks_offset_in_block;
|
let thunks_relocation_block_va = thunks_start_va - thunks_offset_in_block;
|
||||||
|
|
||||||
let relocations: Vec<_> = (0..md.dynamic_relocations.name_by_virtual_address.len())
|
let relocations = vec![];
|
||||||
.map(|i| (thunks_offset_in_block as usize + 2 * i) as u16)
|
|
||||||
.collect();
|
// 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(
|
let base_relocations = write_image_base_relocation(
|
||||||
executable,
|
executable,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue