[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 16:28:16 CST 2022


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

--- Comment #6 from Martin Storsjö <martin at martin.st> ---
Hmm, I'm trying to read up on what's going on here... So if I've read
correctly:

- One might consider whether the MSVC-mode specific quirk in LLVM's codegen for
x86_32
(https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/X86/X86MCInstLower.cpp#L1386)
should be enabled for mingw mode too? How does GCC behave with respect to to
this quirk (and how does GCC built Wine behave with regards to this bug?)

- Prefer MSVC mode over mingw mode, when both modes are available for Wine to
use. Overall this could work (and I could see why it could be preferred, as
that's a more pristine toolchain/environment for Wine to use). But specifically
for arm32 mode, one can't build Wine with Clang in MSVC mode, because Wine
doesn't provide the compiler_rt builtins that are needed there (it's around a
dozen of functions needed; integer divisions, conversions between 64 bit
integers and float/double). But with an exception for 32 bit arm, I'd be fine
with such a preference change.

-- 
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