https://bugs.winehq.org/show_bug.cgi?id=48161
--- Comment #3 from Paul Gofman gofmanp@gmail.com --- I don't know really if it is exactly duplicate or not: there are chances that UPlay can get away with DECLSPEC_HOTPATCH on some additional functions (like many other applications which do hotpatching) and thus be fixed regardless of this bug. Not sure if this is the case, I didn't try UPlay lately.
To put the issue here in the other words, I tend to think it is GCC bug. That is, I would expect gcc to issue an error if it encounters ms_hook_prologue when -fcf-option is used. Or issue a warning and make ms_hook_prologue do nothing when encountered. With -fcf-protection gcc is supposed to output a CET-enabled binary, which does not look possible with ms_hook_prologue on some functions.