mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 06:18:42 +00:00
do not funnel non-dwarf sections in dwarf input prep pass
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user