[lld] [llvm] [LLD][COFF] Make unresolved symbol search behavior compliant with MSVC link.exe (PR #85290)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 16:42:29 PDT 2024


https://github.com/rnk commented:

I haven't finished reviewing this, but I wanted to say I read the problem statement and the reproducer and I think I understand the failure mode from the Rust issue where some unrelated exported function from an import library was preferred over the symbol defined local to a static library.

I think my main consideration is, how will this behavior interact with any future attempt to parallelize symbol resolution? I'm still dreaming of this, but maybe everyone else has moved on. The critical requirement is that we can define some kind of global symbol priority comparator, and the need to "prefer" library local symbols seems like it would complicate that.

Anway, I'll have to revisit this tomorrow.

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


More information about the llvm-commits mailing list