winebuild: Correct hotpatching prologue in import thunks for x86_64.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48938
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-06-26 12:42:39 +03:00 committed by Alexandre Julliard
parent 301dde9838
commit 19aa67d170
1 changed files with 1 additions and 1 deletions

View File

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