[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


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

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

%.o : %.c

        $(CC) -S $(ALLCFLAGS) -o $@.tmp $<
        $(TOPSRCDIR)/tools/asmfixer <$@.tmp >$@
        $(RM) $@.tmp

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]/;

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