make use of undocumented anti-dependency search property on weak symbols

to implement alternate name using weak symbols
This commit is contained in:
Nikita Smith
2025-07-30 15:21:10 -07:00
committed by Ryan Fleury
parent 8d246d0c6a
commit c1958809eb
6 changed files with 123 additions and 41 deletions
+4 -3
View File
@@ -294,9 +294,10 @@ typedef struct COFF_Symbol32
typedef U32 COFF_WeakExtType;
enum
{
COFF_WeakExt_NoLibrary = 1,
COFF_WeakExt_SearchLibrary = 2,
COFF_WeakExt_SearchAlias = 3
COFF_WeakExt_NoLibrary = 1,
COFF_WeakExt_SearchLibrary = 2,
COFF_WeakExt_SearchAlias = 3,
COFF_WeakExt_AntiDependency = 4, // default symbol must not reference a weak symbol
};
// storage class: External