[Bug 27349] SafeDisc v2.x API entry analyzer flags Wine's user32.dll as "bad" (too many exports with PIC loads in prolog code) (SimCity 4, IL-2 FB, NFSU)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 12 02:14:15 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=27349

--- Comment #16 from Anastasius Focht <focht at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list