[lld] [LLD][COFF] Do another pass of resolveRemainingUndefines for undefined lazy symbols (PR #109082)
Mike Hommey via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 01:21:06 PDT 2024
================
@@ -2601,7 +2601,10 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
createECExportThunks();
// Resolve remaining undefined symbols and warn about imported locals.
- ctx.symtab.resolveRemainingUndefines();
+ if (ctx.symtab.resolveRemainingUndefines()) {
+ run();
+ ctx.symtab.resolveRemainingUndefines();
----------------
glandium wrote:
I was pondering about that while writing the code. I guess there isn't really a risk that we end up having more forceLazy happening indefinitely.
https://github.com/llvm/llvm-project/pull/109082
More information about the llvm-commits
mailing list