mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects
This commit is contained in:
commit
323210c547
124 changed files with 5594 additions and 3837 deletions
|
@ -995,6 +995,20 @@ pub(crate) fn surgery_elf(
|
|||
}
|
||||
};
|
||||
|
||||
if app_obj
|
||||
.sections()
|
||||
.filter(|sec| {
|
||||
let name = sec.name().unwrap_or_default();
|
||||
!name.starts_with(".debug") && !name.starts_with(".eh")
|
||||
})
|
||||
.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