https://bugs.winehq.org/show_bug.cgi?id=50625
--- Comment #20 from Martin Storsjö martin@martin.st --- (In reply to Martin Storsjö from comment #19)
However the testcase you've attached here does even when Wine is correctly configured and built with libunwind, as the __CxxFrameHandler function still isn't implemented. If you'd make a build that is linked against the static CRT (/MT instead of /MD) it should work - I tried building it from the source you provided that way, and then it passes.
I can try to have a look at whether it's feasible to implement that function
- but I'm not sure if there are other architecture specific bits in the
msvcp140.dll and how well that DLL is supported on non-x86 architectures overall.
Sorry for the mixup, this function doesn't have anything to do with msvcp140.dll, it's all msvcrt/ucrtbase.
But in any case, yeah it's unimplemented. Looking at the x86_64 version of it, it's a pretty significant amount of code - I don't think I can make a corresponding arm version in the near future. For now, the simplest solution is to just statically link the CRT for such cases.