[lld] [llvm] [LLD][COFF] Make unresolved symbol search behavior compliant with MSVC link.exe (PR #85290)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 13:39:27 PDT 2024
================
@@ -475,6 +508,11 @@ void LinkerDriver::parseDirectives(InputFile *file) {
toString(file) + ")");
}
}
+
+ // If we are running off the low-priority task list, execute and drain the
+ // high priority task list before going any further. This is to ensure symbols
+ // provided by /DEFAULTLIB archives are linked properly in the symbol table.
+ executeFirstQueue(firstTaskQueue);
----------------
cjacek wrote:
I’m wondering if we could simplify this by having `run()` handle it directly without the need for additional assistance. For example, the attached [patch](https://github.com/user-attachments/files/17511930/run.txt) also passes the tests.
https://github.com/llvm/llvm-project/pull/85290
More information about the llvm-commits
mailing list