7 Jan
2026
7 Jan
'26
3:05 p.m.
On Wed Jan 7 14:56:22 2026 +0000, Yuxuan Shui wrote:
@jacek do you have thoughts on this? `corecrt_startup.h` defines `_initterm_e` as dllimport, but the fallback version is not in a implib, and lld-link complains: ``` lld-link: error: undefined symbol: __declspec(dllimport) _initterm_e
referenced by libwinecrt0.a(crt_dllmain.o):(DllMainCRTStartup) NOTE: a relevant symbol '_initterm_e' is available in dlls/winecrtend/x86_64-windows/libwinecrtend.a but cannot be used because it is not an import library.
Also, the "pulling symbol in only when needed" behavior is GNU ld specific. With lld-link I also get `duplicate symbol: _initterm_e` when it's also available from msvcrt. Now I start to think "use `_initterm_e` from msvcrt when available" is not possible...
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_126499