[Bug 10273] satisfy SafeDisc 2.x heuristic API analyzer by "adjusting" API exports/entry statistics of wine builtins (affects e.g. photoshop)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Dec 1 19:36:50 CST 2007


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





--- Comment #35 from M Welinder <terra at gnome.org>  2007-12-01 19:36:50 ---
Specifically...

In Makefile, replace .c.o rule with these.  (The first one cancels the
built-in .c.o rule.)

%.o : %.c

.c.s:
        $(CC) -S $(ALLCFLAGS) -o [email protected] $<
        $(TOPSRCDIR)/tools/asmfixer <[email protected] >$@
        $(RM) [email protected]

And add this in tools/asmfixer:

#!/usr/bin/perl -w

use strict;

my $instrs = 100000;

while (<STDIN>) {
    $instrs = 0 if (/^[a-zA-Z_][a-zA-Z_0-9]*:/);
    while ($instrs < 8 && /^\t(call|j)/) { print "\tnop\n"; $instrs++; }
    $instrs++ if /^\t[a-z]/;
    print;
}


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list