mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-02 03:58:11 +00:00
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:
committed by
Ryan Fleury
parent
dd715dacf7
commit
d3dedd8bef
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user