4 Feb
2026
4 Feb
'26
12:29 p.m.
On Wed Feb 4 00:48:08 2026 +0000, Yuxuan Shui wrote:
Thanks! That makes sense. So what's the best thing to do here? Should wine be using `ld.lld` when using llvm in MinGW mode? Or maybe I just need to add `-lldmingw`? I think we should just accept that, when linking in MSVC mode, GCC-style constructors will not work. We could probably just emit fake `__CTOR_LIST__`/`__DTOR_LIST__` symbols in winebuild to make crt happy.
(Another possibility would be to implement those on top of the existing `.CRT` section in a separate object file, which we'd pull only for mingw targets. I'm not sure if it'd be worth complications.) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9758#note_128763