[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
Fri Dec 31 06:57:24 CST 2021
https://bugs.winehq.org/show_bug.cgi?id=49828
Anastasius Focht <focht at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|MSVC 2019 executables with |MSVC 2019 32-bit
|ASAN enabled fail to start |executables with ASAN
| |enabled fail to start when
| |Wine is built with LLVM
| |MinGW due to missing
| |hotpatch prolog
| |(kernelbase.dll exports et
| |al.)
--- Comment #5 from Anastasius Focht <focht at gmx.net> ---
Hello folks,
@Jacek comment #3
--- quote ---
If you have llvm-mingw installed, then it will be used by consigure to build
Wine with mingw target. To force MSVC target, you may use something like:
configure CROSSCC=clang
(it may still use clang shipped with llvm-mingw, just in a different way)
--- quote ---
It didn't work for me, clean build but the API entry still doesn't start with
the 2-byte instruction.
I'm using Martin's 20211002 release with LLVM stable 13.0.0
https://github.com/mstorsjo/llvm-mingw/releases/tag/20211002
https://github.com/mstorsjo/llvm-mingw/releases/download/20211002/llvm-mingw-20211002-ucrt-ubuntu-18.04-x86_64.tar.xz
'config.log'
--- snip ---
CROSSCC='clang'
CROSSCFLAGS='-g -O2'
CROSSDEBUG='pdb'
...
CROSSTARGET='i686-windows'
--- snip ---
@Roman comment #4
I've adjusted the title to be more clear. Sure, there could be more bug reports
for each of the issues:
(1) Make 'MSVC' mode default in Wine when LLVM MinGW is used (this one?).
(2) Add a bunch of missing instruction decodings to improve ASAN hooking (from
bug 50993 and bug 49828 = this one) -> track upsteam project with it and
resolve 'NOT OUR BUG' later.
(3) Fixing specific Wine API to add missing hotpatch decoration = bug 50993?
(4) Bug 50993 add link to bug 50735 because one of the issues mentioned was
fixed there ("ntdll: Don't pretend that the whole address space is reserved on
non-i386.").
Regards
--
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