do not funnel non-dwarf sections in dwarf input prep pass

This commit is contained in:
Ryan Fleury
2025-07-28 16:22:23 -07:00
parent 48f5df2523
commit 122c27eabe
+5 -1
View File
@@ -46,11 +46,13 @@ dw_input_from_elf_bin(Arena *arena, String8 data, ELF_Bin *bin)
if(section_kind == DW_Section_Null) if(section_kind == DW_Section_Null)
{ {
section_kind = dw_section_dwo_kind_from_string(section_name); section_kind = dw_section_dwo_kind_from_string(section_name);
is_dwo = 1; is_dwo = (section_kind != DW_Section_Null);
} }
//- rjf: decompress section data if needed //- rjf: decompress section data if needed
String8 section_data__uncompressed = {0}; String8 section_data__uncompressed = {0};
if(section_kind != DW_Section_Null)
{
if(!(shdr->sh_flags & ELF_Shf_Compressed)) if(!(shdr->sh_flags & ELF_Shf_Compressed))
{ {
section_data__uncompressed = section_data__maybe_compressed; section_data__uncompressed = section_data__maybe_compressed;
@@ -98,8 +100,10 @@ dw_input_from_elf_bin(Arena *arena, String8 data, ELF_Bin *bin)
} }
} }
} }
}
//- rjf: store //- rjf: store
if(section_kind != DW_Section_Null)
{ {
is_section_present[section_kind] = 1; is_section_present[section_kind] = 1;
DW_Section *d = &result.sec[section_kind]; DW_Section *d = &result.sec[section_kind];