filter out debug and eh relocatoins

This commit is contained in:
Brendan Hansknecht 2022-10-09 15:46:23 -07:00
parent b306c9a76b
commit 3cf4459ea6
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -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)
{