https://bugs.winehq.org/show_bug.cgi?id=55863
--- Comment #2 from Brendan Shanks bshanks@codeweavers.com --- (In reply to Jacek Caban from comment #1)
Created attachment 75502 [details] Make lebels local
Those labels don't really need to be global, does the attached patch help?
No, I still get 'error: invalid CFI advance_loc expression' errors.
I have two ideas for fixes:
- add NOPs into the dispatchers and search for those in handle_syscall_trap(): https://gitlab.winehq.org/bshanks/wine/-/commit/28f2cf9647eda129b4d148558a96...
- or, use JMPs to skip the prolog when necessary: https://gitlab.winehq.org/bshanks/wine/-/commit/a3bfc23632569764d91c6665a537...
I'm not sure which one I prefer, any better ideas are welcome.