fix DBI SC image-section range mapping

Log and skip section contributions that fail to map into the linked image.
Keep a file-range-to-section-number map so compact file ranges produce the
correct DBI section numbers.
This commit is contained in:
Nikita Smith
2026-07-27 14:47:12 -07:00
committed by Ryan Fleury
parent 541727b819
commit afd454b41f
6 changed files with 145 additions and 150 deletions
+7 -6
View File
@@ -215,12 +215,13 @@ typedef struct
U64 symbol_count;
// push DBI SC Map
PE_BinInfo pe;
COFF_SectionHeader **image_section_table;
U64 image_section_table_count;
Rng1U64Array image_section_file_ranges;
Rng1U64Array image_section_virt_ranges;
PDB_DbiSectionContribList *sc_list; // [obj_count]
PE_BinInfo pe;
COFF_SectionHeader **image_section_table;
U64 image_section_table_count;
Rng1U64Array image_section_virt_ranges;
Rng1U64Array image_section_file_ranges;
U64 *image_section_file_section_numbers;
PDB_DbiSCList *sc_list; // [obj_count]
} LNK_BuildPdb;
typedef struct