[Bug 49828] MSVC 2019 32-bit executables with ASAN enabled fail to start when Wine is built with LLVM MinGW due to missing hotpatch prolog (kernelbase.dll exports et al.)

WineHQ Bugzilla wine-bugs at winehq.org
Sat Jan 1 17:05:01 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=49828

--- Comment #7 from Jacek Caban <jacek at codeweavers.com> ---
I think that current logic is fine. The usual use case for MSVC mode is to use
distro provided clang - it should be as simple as installing default clang with
the package manager. When llvm-mingw is installed, it's presumably for a reason
and defaulting to it seems fine. It then falls into the same checks as GCC and
we use it like that.

It came out due to a problem with making functions hotpatchable in clang-based
builds (ideally both mingw and msvc, IMHO). GCC provides __ms_hook_prologue__
for that. At some point Chip implemented that for that attribute for clang, but
it was later reverted. There were later efforts to implement it in MSVC
compatible way. Now that I looked again, it seems that it's not yet complete on
LLVM side, but some parts landed:
https://reviews.llvm.org/D49366
https://reviews.llvm.org/D81301

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list