remove arena per section

This commit is contained in:
Nikita Smith
2025-05-08 15:58:05 -07:00
committed by Ryan Fleury
parent 8da56025b3
commit 86fe2ddd38
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -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_Section *sect = &sect_node->data;
sect->arena = arena_alloc();
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->has_layout = 1;
-1
View File
@@ -60,7 +60,6 @@ typedef struct LNK_SectionDefinition
typedef struct LNK_Section
{
Arena *arena;
U64 id;
String8 name;
COFF_SectionFlags flags;