https://bugs.winehq.org/show_bug.cgi?id=48291
--- Comment #54 from Zebediah Figura z.figura12@gmail.com --- (In reply to Brendan Shanks from comment #53)
Created attachment 67179 [details] 0001-winebuild-Add-symbols-for-syscall-numbers-on-64-bit.patch
I'm not sure this patch makes sense by itself, and I'm not happy about including any of the other patches in Staging.
What does deserve examination is how this can be made to work in (upstream) Wine, if indeed it can.
Determining whether a syscall comes from PE or Unix code will probably become easier as time goes on and the boundary between PE and Unix becomes clearer. However, will the SIGSYS handler be fast enough, or will it cause a noticeable slowdown? My suspicion is the latter, but that's just armchair analysis.
If not, I imagine we're going to need to introduce support in the kernel in order to make this work.