https://bugs.winehq.org/show_bug.cgi?id=46626
--- Comment #8 from Vlad Bespalov vlad.botanic@gmail.com --- (In reply to Anastasius Focht from comment #6)
The culprit is '-fcf-protection' which causes the insertion of ENDBR instruction in API entry code. If you use rpmbuild environment then it's active. If you build without rpmbuild using gcc defaults or own CFLAGS then it's not active.
Thanks!
I was able to reproduce the problem on top of the wine tree with -fcf-protection compilation flag, and verified that proposed patch actually "fixes" the problem.
Would it make sense to send the patch to wine-devel, or (given that it is distro-specific) propose it as a patch to fedora`s wine-devel builds instead?
If neither is acceptable for now, I think it makes sense to propose the patch for wine-staging. 8-)
Thanks for advice.