simplify section table

This commit is contained in:
Nikita Smith
2025-06-25 10:53:24 -07:00
committed by Ryan Fleury
parent ecdee57c60
commit 9d93eda3ed
6 changed files with 175 additions and 242 deletions
+20
View File
@@ -14,12 +14,32 @@ typedef struct LNK_LinkContext
LNK_LibList lib_index[LNK_InputSource_Count];
} LNK_LinkContext;
// -- Image --------------------------------------------------------------------
typedef struct LNK_ImageContext
{
String8 image_data;
LNK_SectionTable *sectab;
} LNK_ImageContext;
typedef struct LNK_SectionDefinition
{
String8 name;
COFF_SectionFlags flags;
U64 contribs_count;
struct LNK_Obj *obj;
U64 obj_sect_idx;
} LNK_SectionDefinition;
typedef struct LNK_CommonBlockContrib
{
struct LNK_Symbol *symbol;
union {
U32 size;
U32 offset;
} u;
} LNK_CommonBlockContrib;
// --- Base Reloc --------------------------------------------------------------
typedef struct LNK_BaseRelocPage