ignore __eh_frame section for the time being in macho surgery

This commit is contained in:
Jakub Konka 2024-10-16 22:54:34 +02:00
parent 32b9274dad
commit 88962f9e98

View file

@ -1207,6 +1207,7 @@ fn surgery_macho_help(
let rodata_sections: Vec<Section> = app_obj
.sections()
.filter(|sec| sec.kind() == SectionKind::ReadOnlyData)
.filter(|sec| sec.name().unwrap_or("") != "__eh_frame") // ignore __eh_frame for now
.collect();
// bss section is like rodata section, but it has zero file size and non-zero virtual size.