make condition stricter

This commit is contained in:
Folkert 2022-10-30 00:51:42 +02:00
parent 21a2f6f103
commit 748b2cf23a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -404,8 +404,11 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
executable[offset + *offset_in_section as usize..][..4]
.copy_from_slice(&(delta as i32).to_le_bytes());
} else {
if *address == 0 {
eprintln!("I don't know the address of the {} function!", name);
if *address == 0 && !name.starts_with("roc") {
eprintln!(
"I don't know the address of the {} function! this may cause segfaults",
name
);
}
match relocation.kind() {