mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 19:30:03 +00:00
assign section index to .reloc
This commit is contained in:
committed by
Ryan Fleury
parent
e1278a6545
commit
c82b98cd49
@@ -442,6 +442,20 @@ lnk_finalize_section_layout(LNK_SectionTable *sectab, LNK_Section *sect, U64 fil
|
||||
sect->vsize = cursor;
|
||||
}
|
||||
|
||||
|
||||
internal void
|
||||
lnk_assign_section_index(LNK_Section *sect, U64 sect_idx)
|
||||
{
|
||||
sect->sect_idx = sect_idx;
|
||||
|
||||
// assign section indices to contribs
|
||||
for (LNK_SectionContribChunk *sc_chunk = sect->contribs.first; sc_chunk != 0; sc_chunk = sc_chunk->next) {
|
||||
for (U64 sc_idx = 0; sc_idx < sc_chunk->count; sc_idx += 1) {
|
||||
sc_chunk->v[sc_idx]->u.sect_idx = sect_idx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal void
|
||||
lnk_assign_section_virtual_space(LNK_Section *sect, U64 sect_align, U64 *voff_cursor)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user