[PATCH] winebuild: Correct hotpatching prologue in import thunks for x86_64.

Paul Gofman pgofman at codeweavers.com
Fri Jun 26 04:42:39 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=48938
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 tools/winebuild/spec32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index b1e20e0484d..5f74d2f29be 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -576,7 +576,7 @@ void output_exports( DLLSPEC *spec )
             else output( "\tjmp *__imp_%s\n", asm_name( get_link_name( odp )));
             break;
         case CPU_x86_64:
-            output( "\t.byte 0x48\n" );  /* hotpatch prolog */
+            output( "\t.byte 0x48,0x8d,0xa4,0x24,0x00,0x00,0x00,0x00\n" );  /* hotpatch prolog */
             output( "\tjmp *__imp_%s(%%rip)\n", asm_name( get_link_name( odp )));
             break;
         default:
-- 
2.26.2




More information about the wine-devel mailing list