allow ingested compiler-rt function in windows surgical linker

This commit is contained in:
Brendan Hansknecht 2023-05-30 12:11:15 -07:00
parent fe4577ce4c
commit a41611b553
No known key found for this signature in database
GPG Key ID: 0EA784685083E75B

View File

@ -434,7 +434,9 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
relocation,
);
} else {
if *address == 0 && !name.starts_with("roc") {
let is_ingested_compiler_rt =
["__muloti4", "__divti3", "__udivti3", "__modti3"].contains(&name.as_str());
if *address == 0 && !name.starts_with("roc") && !is_ingested_compiler_rt {
eprintln!(
"I don't know the address of the {} function! this may cause segfaults",
name