From 8280eba03b7fd7918058a6e1af51b014850909f3 Mon Sep 17 00:00:00 2001 From: Kai Tietz <ktietz@redhat.com> Date: Fri, 22 Mar 2013 10:38:55 +0100 Subject: win64.S: Make use of ffi_closure_win64_inner symbol pc-relative. * src/x86/win64.S: Make use of ffi_closure_win64_inner symbol pc-relative. From-SVN: r196900 --- libffi/src/x86/win64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libffi/src/x86') diff --git a/libffi/src/x86/win64.S b/libffi/src/x86/win64.S index fcdb270faf5..1394cf177b6 100644 --- a/libffi/src/x86/win64.S +++ b/libffi/src/x86/win64.S @@ -295,7 +295,7 @@ SYMBOL_NAME(ffi_closure_win64): mov %rax, %rcx # context is first parameter mov %rsp, %rdx # stack is second parameter add $48, %rdx # point to start of arguments - mov $SYMBOL_NAME(ffi_closure_win64_inner), %rax + leaq SYMBOL_NAME(ffi_closure_win64_inner)(%rip), %rax callq *%rax # call the real closure function add $40, %rsp movq %rax, %xmm0 # If the closure returned a float, -- cgit v1.2.1