mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 14:28:40 +00:00
strip postfix when searching for section
This commit is contained in:
committed by
Ryan Fleury
parent
a2bef106a1
commit
6fd9ab7388
@@ -189,20 +189,20 @@ lnk_section_table_remove(LNK_SectionTable *sectab, String8 name)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// push to free list
|
|
||||||
SLLQueuePush(sectab->free_list.first, sectab->free_list.last, node);
|
|
||||||
sectab->free_list.count += 1;
|
|
||||||
|
|
||||||
ProfEnd();
|
ProfEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal LNK_Section *
|
internal LNK_Section *
|
||||||
lnk_section_table_search(LNK_SectionTable *sectab, String8 name, COFF_SectionFlags flags)
|
lnk_section_table_search(LNK_SectionTable *sectab, String8 full_or_partial_name, COFF_SectionFlags flags)
|
||||||
{
|
{
|
||||||
Temp scratch = scratch_begin(0,0);
|
Temp scratch = scratch_begin(0,0);
|
||||||
|
|
||||||
|
String8 name = {0};
|
||||||
|
String8 postfix = {0};
|
||||||
|
coff_parse_section_name(full_or_partial_name, &name, &postfix);
|
||||||
|
|
||||||
String8 name_with_flags = lnk_make_name_with_flags(scratch.arena, name, flags);
|
String8 name_with_flags = lnk_make_name_with_flags(scratch.arena, name, flags);
|
||||||
LNK_Section *section = 0;
|
LNK_Section *section= 0;
|
||||||
hash_table_search_string_raw(sectab->sect_ht, name_with_flags, §ion);
|
hash_table_search_string_raw(sectab->sect_ht, name_with_flags, §ion);
|
||||||
|
|
||||||
scratch_end(scratch);
|
scratch_end(scratch);
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ typedef struct LNK_Section
|
|||||||
B32 is_merged;
|
B32 is_merged;
|
||||||
|
|
||||||
LNK_SectionContribChunkList contribs;
|
LNK_SectionContribChunkList contribs;
|
||||||
LNK_SectionContrib *first_contrib_chunk;
|
|
||||||
|
|
||||||
U64 voff;
|
U64 voff;
|
||||||
U64 vsize;
|
U64 vsize;
|
||||||
|
|||||||
Reference in New Issue
Block a user