add DEF, GUARD, and SECTION config support

Parse /DEF, /GUARD, and /SECTION switches, including DEF
handling for NAME/LIBRARY, BASE, VERSION, HEAPSIZE, STACKSIZE, EXPORTS,
and SECTIONS.

Store section directives in linker config and apply them consistently
when gathering object sections when pushing/searching image sections.

Pull load-config symbols for /GUARD without setting GUARD_CF until guard
tables are emitted.

Add coverage for DEF file parity, section directives, and guard
load-config handling.
This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-07-27 14:47:14 -07:00
1 parent 35722f2a01
commit b77c958b5f
5 files changed
+824 -62

No files matched your search

+1
View File
@@ -261,6 +261,7 @@ typedef struct LNK_ImageFillNode
typedef struct
{
LNK_Config *config;
LNK_SymbolTable *symtab;
LNK_SectionTable *sectab;
U64 objs_count;