simplifying symbol table scopes

Linker cannot register extern import symbols initially because
the import object files are not available until all other object files are
resolved. To work around this, we create a stub weak symbol and assign
it to each import symbol. This allows linker to proceed. Once the import
object files are generated, linker replaces the stub symbol with
the actual ones from the import objects.
This commit is contained in:
Nikita Smith
2025-08-05 08:39:12 -07:00
committed by Ryan Fleury
parent dd715dacf7
commit d3dedd8bef
4 changed files with 13 additions and 37 deletions
+1
View File
@@ -15,6 +15,7 @@ typedef struct LNK_LinkContext
// -- Image --------------------------------------------------------------------
#define LNK_IMPORT_STUB "*** RAD_IMPORT_STUB ***"
#define LNK_REMOVED_SECTION_NUMBER_32 (U32)-3
#define LNK_REMOVED_SECTION_NUMBER_16 (U16)-3