radlink: absolute symbols with identical value are legal

This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-09-21 09:08:04 -07:00
1 parent 51bd5e0882
commit 458e5029db
1 file changed
+5 -1
+5 -1
View File
@@ -260,7 +260,11 @@ lnk_can_replace_symbol(LNK_Symbol *dst, LNK_Symbol *src)
}
// abs vs abs
else if (dst_interp == COFF_SymbolValueInterp_Abs && src_interp == COFF_SymbolValueInterp_Abs) {
lnk_error_multiply_defined_symbol(dst, src);
if (dst_parsed.value == src_parsed.value) {
can_replace = lnk_symbol_is_before(src, dst);
} else {
lnk_error_multiply_defined_symbol(dst, src);
}
}
// weak vs weak
else if (dst_interp == COFF_SymbolValueInterp_Weak && src_interp == COFF_SymbolValueInterp_Weak) {