rdi_from_dwarf: stub out pointers for now, cache as we go, merge type dependency count calculation with hash computation

This commit is contained in:
Ryan Fleury committed 2026-06-23 12:32:11 -07:00
1 parent 28009ec01e
commit 98b7b5859c
7 files changed
+90 -297

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ dw_is_dwarf_present_coff_section_table(String8 string_table, U64 section_count,
}
internal DW_Raw
dw_input_from_coff_section_table(Arena *arena, String8 raw_image, String8 string_table, U64 section_count, COFF_SectionHeader *section_table)
dw_raw_from_coff_section_table(Arena *arena, String8 raw_image, String8 string_table, U64 section_count, COFF_SectionHeader *section_table)
{
DW_Raw input = {0};
B32 sect_status[ArrayCount(input.sec)] = {0};
+1 -1
View File
@@ -5,6 +5,6 @@
#define DWARF_PARSE_COFF_H
internal B32 dw_is_dwarf_present_coff_section_table(String8 string_table, U64 section_count, COFF_SectionHeader *section_table);
internal DW_Raw dw_input_from_coff_section_table(Arena *arena, String8 raw_image, String8 string_table, U64 section_count, COFF_SectionHeader *section_table);
internal DW_Raw dw_raw_from_coff_section_table(Arena *arena, String8 raw_image, String8 string_table, U64 section_count, COFF_SectionHeader *section_table);
#endif // DWARF_PARSE_COFF_H
+1 -1
View File
@@ -206,7 +206,7 @@ dw_input_from_writer(Arena *arena, DW_Writer *writer)
PE_BinInfo pe = pe_bin_info_from_data(scratch.arena, exe);
COFF_SectionHeader *section_table = (COFF_SectionHeader *)(exe.str + pe.section_table_range.min);
String8 string_table = str8_substr(exe, pe.string_table_range);
DW_Raw input = dw_input_from_coff_section_table(arena, exe, string_table, pe.section_count, section_table);
DW_Raw input = dw_raw_from_coff_section_table(arena, exe, string_table, pe.section_count, section_table);
obj_release(&obj);
scratch_end(scratch);