mirror of
https://github.com/partic2/libffi
synced 2026-11-09 17:47:19 +00:00
Merge pull request #393 from thejunkjon/master
Linker error "recompile with -fPIC" for x86_64
This commit is contained in:
+1
-1
@@ -274,7 +274,7 @@ L(do_closure):
|
||||
leaq ffi_closure_OFS_RVALUE(%rsp), %rcx /* Load rvalue */
|
||||
movq %rsp, %r8 /* Load reg_args */
|
||||
leaq ffi_closure_FS+8(%rsp), %r9 /* Load argp */
|
||||
call C(ffi_closure_unix64_inner)
|
||||
call PLT(C(ffi_closure_unix64_inner))
|
||||
|
||||
/* Deallocate stack frame early; return value is now in redzone. */
|
||||
addq $ffi_closure_FS, %rsp
|
||||
|
||||
+1
-1
@@ -214,7 +214,7 @@ C(ffi_closure_win64):
|
||||
movsd %xmm3, ffi_clo_OFF_X+24(%rsp)
|
||||
|
||||
leaq ffi_clo_OFF_R(%rsp), %r9
|
||||
call C(ffi_closure_win64_inner)
|
||||
call PLT(C(ffi_closure_win64_inner))
|
||||
|
||||
/* Load the result into both possible result registers. */
|
||||
movq ffi_clo_OFF_R(%rsp), %rax
|
||||
|
||||
Reference in New Issue
Block a user