0291c9f9
by Brendan Shanks at 2024-07-31T21:06:48+02:00
include: Ensure that x86_64 syscall thunks have a consistent length when built with Clang.
GCC always assembles 'jmp 1f' to 'eb 01', as does Clang when using -O1
or higher optimization.
But with -O0, Clang outputs 'e9 01 00 00 00'.
The 'subq $0xb,0x70(%rcx)' line in __wine_syscall_dispatcher relies on
'jmp 1f' being 2 bytes.
Based on patch by Alex S.