mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 12:58:41 +00:00
remove arena per section
This commit is contained in:
committed by
Ryan Fleury
parent
8da56025b3
commit
86fe2ddd38
@@ -132,9 +132,8 @@ lnk_section_table_push(LNK_SectionTable *sectab, String8 name, COFF_SectionFlags
|
|||||||
|
|
||||||
LNK_SectionNode *sect_node = push_array(sectab->arena, LNK_SectionNode, 1);
|
LNK_SectionNode *sect_node = push_array(sectab->arena, LNK_SectionNode, 1);
|
||||||
LNK_Section *sect = §_node->data;
|
LNK_Section *sect = §_node->data;
|
||||||
sect->arena = arena_alloc();
|
|
||||||
sect->id = sectab->id_max++;
|
sect->id = sectab->id_max++;
|
||||||
sect->name = push_str8_copy(sect->arena, name);
|
sect->name = push_str8_copy(sectab->arena, name);
|
||||||
sect->flags = flags;
|
sect->flags = flags;
|
||||||
sect->has_layout = 1;
|
sect->has_layout = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ typedef struct LNK_SectionDefinition
|
|||||||
|
|
||||||
typedef struct LNK_Section
|
typedef struct LNK_Section
|
||||||
{
|
{
|
||||||
Arena *arena;
|
|
||||||
U64 id;
|
U64 id;
|
||||||
String8 name;
|
String8 name;
|
||||||
COFF_SectionFlags flags;
|
COFF_SectionFlags flags;
|
||||||
|
|||||||
Reference in New Issue
Block a user