mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 12:59:41 -07:00
minor fixes for gathering library members
This commit is contained in:
1 parent
086d774b8b
commit
1d6eae2b18
2 files changed
+5
-4
No files matched your search
@@ -316,7 +316,6 @@ lnk_can_replace_symbol(LNK_SymbolScope scope, LNK_Symbol *dst, LNK_Symbol *src)
|
||||
}
|
||||
} break;
|
||||
case LNK_SymbolScope_Lib: {
|
||||
// link.exe picks symbol from lib that is discovered first
|
||||
can_replace = lnk_symbol_lib_is_before(src, dst);
|
||||
} break;
|
||||
default: { InvalidPath; }
|
||||
@@ -345,7 +344,7 @@ lnk_on_symbol_replace(LNK_SymbolScope scope, LNK_Symbol *dst, LNK_Symbol *src)
|
||||
}
|
||||
}
|
||||
|
||||
// make sure leader section is not removed from the output
|
||||
// assert leader section is live
|
||||
#if BUILD_DEBUG
|
||||
{
|
||||
COFF_ParsedSymbol src_parsed = lnk_parsed_symbol_from_coff_symbol_idx(src->u.defined.obj, src->u.defined.symbol_idx);
|
||||
@@ -358,7 +357,9 @@ lnk_on_symbol_replace(LNK_SymbolScope scope, LNK_Symbol *dst, LNK_Symbol *src)
|
||||
#endif
|
||||
} break;
|
||||
case LNK_SymbolScope_Lib: {
|
||||
// nothing to replace
|
||||
LNK_Symbol *last;
|
||||
for (last = src; last->u.member.next != 0; last = last->u.member.next);
|
||||
last->u.member.next = dst;
|
||||
} break;
|
||||
default: { InvalidPath; }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user