[lld] [LLD][COFF] Preserve original symbol name when resolving weak aliases. (PR #105897)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 15:17:19 PDT 2024


cjacek wrote:

I noticed it while looking at corner cases of ARM64EC patch that I plan to send, but it's observable in other cases, like the test from this commit. Without the patch, we'd emit "main" symbol twice. GNU ld in this case preserves the name and even the fact that it's a weak symbol (which we can't do with current architecture), but it gets the target of the symbol wrong, so I don't expect anything to depend on that.

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


More information about the llvm-commits mailing list