http://bugs.winehq.org/show_bug.cgi?id=27349
--- Comment #16 from Anastasius Focht focht@gmx.net 2011-07-12 02:14:14 CDT --- Hello,
--- quote --- Is that with the script from Morten or with #define WINAPI __stdcall __attribute__((__ms_hook_prologue__)) but only compiling user32? --- quote ---
It should be obvious that I used Morten's script to insert as many NOPs needed to move the PIC call beyond the 8 instruction barrier (have a look at the examples I posted).
wine-1.3.24-42-g4ebbd0e unmodified:
kernel32 user32 gdi32 condition (cx < threshold) -------------------------------------------------------------------- c1: 0x44 0x55 0x50 0x5F c2: 0x2B 0x41 0x39 0x3C c3: 0x00 0x00 0x00 0x5A
wine-1.3.24-42-g4ebbd0e with every public export hotpatchable (__ms_hook_prologue__) in user32:
kernel32 user32 gdi32 condition (cx < threshold) -------------------------------------------------------------------- c1: 0x44 0x54 0x50 0x5F c2: 0x2B 0x3F 0x39 0x3C c3: 0x00 0x00 0x00 0x5A
As already suspected - it doesn't have much effect on overall statistics because for the majority of user32 exports one additional instruction is not enough.
Regards