add other compiler-rt functions in builtins.o

This commit is contained in:
Brendan Hansknecht 2023-05-30 14:27:38 -07:00
parent a41611b553
commit e7906b30a9
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
2 changed files with 134 additions and 3 deletions

View file

@ -434,8 +434,18 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
relocation,
);
} else {
let is_ingested_compiler_rt =
["__muloti4", "__divti3", "__udivti3", "__modti3"].contains(&name.as_str());
let is_ingested_compiler_rt = [
"__muloti4",
"__divti3",
"__udivti3",
"__modti3",
"__umodti3",
"__fixdfti",
"__fixsfti",
"__fixunsdfti",
"__fixunssfti",
]
.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",