mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
give an error message when the surgical linker would fail with know issue #3609
This commit is contained in:
parent
7125ccb7b5
commit
b306c9a76b
1 changed files with 10 additions and 0 deletions
|
@ -985,6 +985,16 @@ pub(crate) fn surgery_elf(
|
|||
}
|
||||
};
|
||||
|
||||
if app_obj
|
||||
.sections()
|
||||
.flat_map(|sec| sec.relocations())
|
||||
.any(|(_, reloc)| reloc.kind() == RelocationKind::Absolute)
|
||||
{
|
||||
eprintln!("The surgical linker currently has issue #3609 and would fail linking your app.");
|
||||
eprintln!("Please use `--linker=legacy` to avoid the issue for now.");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
let total_start = Instant::now();
|
||||
|
||||
let loading_metadata_start = total_start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue