[Bug 10273] satisfy SafeDisc 2.x heuristic API analyzer by "adjusting" API exports/entry statistics of wine builtins

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Nov 4 20:06:21 CST 2007


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





--- Comment #12 from Peter Beutner <p.beutner at gmx.net>  2007-11-04 20:06:21 ---
(In reply to comment #9)
> Now the question remains whether to drop -fPIC for these libraries or finding a
> way to relocate the "get_pc_thunk.bx" code snippet into PE section boundaries.

I rather hoped it would be possible to relocate the PE header somehow so that
it sits right before the ELF .text section.
For example by putting the PE header in an extra section and
then with a custom linker script put that section in front of the text
section.(which I think should work at least theoretically ;) )
But I'm still trying to understand how all that building/linking&loading stuff
exactly works in wine, so no guarantees it is possible at all.

> Could you elaborate which games?
> I have successfully tested the Battlefield game series which have SafeDisc 2.5
> and 2.8 (either with dummy exports or by dropping -fPIC).
> I've also tested one SafeDisc 3.x (doom3) and one 4.x game (BF2).
> Maybe we're seeing different issues.

The game was Stronghold patched to V1.2 which reported SafeDisc 2.60.something.
And it definitely didn't work with wine-0.9.48(and dropping -fPIC). But after
updating to the latest git today it suddenly works :). Maybe it was that ioctl
problem that got fixed.(forgot the bug number). Will test it with some other
games as well when I find the time.


-- 
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