https://bugs.winehq.org/show_bug.cgi?id=39403
--- Comment #28 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Sergey Isakov from comment #27)
Clang didn't like absolute addressing. Is it possible to rewrite this thunk to relative addresses?
"movl $" __ASM_NAME("KiFastSystemCall") ", %edx\n\t"
No, it has to be an absolute address. When the thunk wrappers are generated at compile time the following patch is necessary on OSX: https://github.com/wine-compholio/wine-staging/blob/master/patches/ntdll-Sys...