Module: wine
Branch: master
Commit: 8f732c66ab37b54c30d63c74f7822ba1d4f04996
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8f732c66ab37b54c30d63c74…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Mon Apr 29 22:59:36 2019 -0500
makefiles: Build with -fno-PIC on i386.
Many applications attempt to hook or copy native API calls, using methods
sophisticated enough to recognize any sequence of x86 instructions, but not
enough to recognize and account for a GOT register load. Most such cases only
care to insert a JMP instruction in the first five bytes, and so are satisfied
by adding the hot-patch prefix. However, the madCodeHook 3.x engine attempts to
copy the first 15 bytes, and some copy-protection schemes will try to copy the
whole function.
Building with -fno-PIC on i386, as is the default behaviour for Visual Studio
compiled applications, and likely for Windows libraries as well, fixes those
applications, and also stops us once and for all wasting time debugging and
individually applying DECLSPEC_HOTPATCH.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37540
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47027
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 95 ++++++++++++++++++++++++++++++++----------------------------
configure.ac | 19 +++++++-----
2 files changed, 62 insertions(+), 52 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=8f732c66ab37b54c30d6…