[lld] [LLD][COFF] Do another pass of resolveRemainingUndefines for undefined lazy symbols (PR #109082)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 00:17:11 PDT 2024


================
@@ -502,6 +503,11 @@ void SymbolTable::resolveRemainingUndefines() {
     // This odd rule is for compatibility with MSVC linker.
     if (name.starts_with("__imp_")) {
       Symbol *imp = find(name.substr(strlen("__imp_")));
----------------
mstorsjo wrote:

Side note, I find the variable name `imp` here kinda misleading, as it's the imp-less symbol! (We can consider changing it in a separate patch later.)

https://github.com/llvm/llvm-project/pull/109082


More information about the llvm-commits mailing list