mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
missed some renames
This commit is contained in:
parent
fae1d96474
commit
fd5e0c9dda
1 changed files with 4 additions and 4 deletions
|
@ -493,9 +493,9 @@ fn redirect_dummy_dll_functions(
|
|||
) {
|
||||
// it could be that a symbol exposed by the app is not used by the host. We must skip unused symbols
|
||||
let mut targets = function_definition_vas.iter();
|
||||
'outer: for (i, name) in imports.iter().enumerate() {
|
||||
for (target_name, target_va) in targets.by_ref() {
|
||||
if name == target_name {
|
||||
'outer: for (i, host_name) in imports.iter().enumerate() {
|
||||
for (roc_app_target_name, roc_app_target_va) in targets.by_ref() {
|
||||
if host_name == roc_app_target_name {
|
||||
// addresses are 64-bit values
|
||||
let address_bytes = &mut executable[thunks_start_offset + i * 8..][..8];
|
||||
|
||||
|
@ -506,7 +506,7 @@ fn redirect_dummy_dll_functions(
|
|||
}
|
||||
|
||||
// update the address to a function VA
|
||||
address_bytes.copy_from_slice(&target_va.to_le_bytes());
|
||||
address_bytes.copy_from_slice(&roc_app_target_va.to_le_bytes());
|
||||
|
||||
continue 'outer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue