mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
filter out debug and eh relocatoins
This commit is contained in:
parent
b306c9a76b
commit
3cf4459ea6
1 changed files with 4 additions and 0 deletions
|
@ -987,6 +987,10 @@ 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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue