https://bugs.winehq.org/show_bug.cgi?id=43884
Bug ID: 43884 Summary: MSVC LINK.EXE version 14.11.25547.0 crashes due to unimplemented function _memicmp_l Product: Wine Version: 2.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: api-ms-win-* Assignee: wine-bugs@winehq.org Reporter: MTest31@outlook.com Distribution: ---
Created attachment 59491 --> https://bugs.winehq.org/attachment.cgi?id=59491 stdout/stderr output with the crash
Hi there,
I've downloaded the very latest (I think its the very latest) MSVC LINK.EXE from Microsoft and tried to get it working with my locally compiled Wine version 2.19.
You can download the linker from this URL [1] that points to a zip file containing the linker. Inside that zip file the link.exe is located in the path [2]. The linker is a 64 bit binary, so it needs 64 bit Wine. WOW64 is not needed.
You'll obviously also need a Windows SDK handy to try out the linker, and some object files to feed it with. I haven't tried out whether cl.exe works, its not my priority. My object files were generated by rustc which uses llvm, its msvc based target only uses the linker.
You can see that my setup is a bit hard to reproduce, therefore it would probably be the best idea to just send me a patch that I can then test.
Just invoking the linker without any args works as expected. It prints all the options and then complains that it didn't get any args fed.
If you use the linker to link actual payloads however, you'll get an error, boiling down to the following error message: wine: Call from 0x7b44f727 to unimplemented function api-ms-win-crt-string-l1-1-0.dll._memicmp_l, aborting
I've attached a file containing stdout/stderr output of the linker with the crash happening and the /VERBOSE option passed.
I've created a patch for wine to implement the stubbed out _memicmp_l in all the dlls that reference it and with the patch applied the linker is able to produce working binaries for me!
Now I am afraid I can't share the patch with you because I can't fulfill your requirements for contributions. However, I hope my information that implementing that function fixes the issue for me, will lead to the function being implemented in upstream Wine as well. I am ready to test any patches you send me.
Thank you!
[1]: https://download.visualstudio.microsoft.com/download/pr/11436965/d360453cfd1... [2]: Contents/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/