[lld] [LLD][COFF] Prevent to emit relocations for discarded weak wrapped symbols (PR #156214)
Tomohiro Kashiwada via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 30 23:18:41 PDT 2025
kikairoya wrote:
That looks a further different problem. The `operator new`s (e.g. `_ZdaPv`) is loaded from `libstdc++.dll.a` as `LazyArchiveKind`, which can't be a weak symbol thus weakness of `__real__ZdaPv` can't derive to `_ZdaPv` and `__wrap__ZdaPv`.
(Ah, then, 'inherit weak' might not be needed?)
Anyway, I believe that pulling `__wrap__ZdaPv` feels odd but not a problem.
https://github.com/llvm/llvm-project/pull/156214
More information about the llvm-commits
mailing list