mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
push a null symbol as a terminator for /alternatename weak symbol chain
This commit is contained in:
committed by
Nikita Smith
parent
04d2877b40
commit
a3582332ee
+4
-1
@@ -462,7 +462,10 @@ lnk_make_null_obj(Arena *arena)
|
||||
{
|
||||
COFF_ObjWriter *obj_writer = coff_obj_writer_alloc(0,COFF_MachineType_Unknown);
|
||||
|
||||
// make import stub
|
||||
// push null symbol
|
||||
coff_obj_writer_push_symbol_abs(obj_writer, str8_lit(LNK_NULL_SYMBOL), 0, COFF_SymStorageClass_External);
|
||||
|
||||
// push import stub
|
||||
{
|
||||
COFF_ObjSymbol *tag = coff_obj_writer_push_symbol_abs(obj_writer, str8_lit("RAD_IMPORT_STUB_NULL"), 0, COFF_SymStorageClass_Static);
|
||||
coff_obj_writer_push_symbol_weak(obj_writer, str8_lit(LNK_IMPORT_STUB), COFF_WeakExt_AntiDependency, tag);
|
||||
|
||||
Reference in New Issue
Block a user