.cfi_startproc
# if _CALL_ELF == 2
ffi_call_LINUX64:
+# ifndef __PCREL__
addis %r2, %r12, .TOC.-ffi_call_LINUX64@ha
addi %r2, %r2, .TOC.-ffi_call_LINUX64@l
+# endif
.localentry ffi_call_LINUX64, . - ffi_call_LINUX64
# else
.section ".opd","aw"
/* Call ffi_prep_args64. */
mr %r4, %r1
# if defined _CALL_LINUX || _CALL_ELF == 2
+# ifdef __PCREL__
+ bl ffi_prep_args64@notoc
+# else
bl ffi_prep_args64
+ nop
+# endif
# else
bl .ffi_prep_args64
+ nop
# endif
# if _CALL_ELF == 2
.cfi_startproc
# if _CALL_ELF == 2
ffi_closure_LINUX64:
+# ifndef __PCREL__
addis %r2, %r12, .TOC.-ffi_closure_LINUX64@ha
addi %r2, %r2, .TOC.-ffi_closure_LINUX64@l
+# endif
.localentry ffi_closure_LINUX64, . - ffi_closure_LINUX64
# else
.section ".opd","aw"
stfd %f12, -104+(11*8)(%r1)
stfd %f13, -104+(12*8)(%r1)
- # load up the pointer to the saved fpr registers */
+ # load up the pointer to the saved fpr registers
addi %r8, %r1, -104
# load up the pointer to the result storage
# make the call
# if defined _CALL_LINUX || _CALL_ELF == 2
+# ifdef __PCREL__
+ bl ffi_closure_helper_LINUX64@notoc
+# else
bl ffi_closure_helper_LINUX64
+ nop
+# endif
# else
bl .ffi_closure_helper_LINUX64
+ nop
# endif
.Lret:
.cfi_startproc
# if _CALL_ELF == 2
ffi_go_closure_linux64:
+# ifndef __PCREL__
addis %r2, %r12, .TOC.-ffi_go_closure_linux64@ha
addi %r2, %r2, .TOC.-ffi_go_closure_linux64@l
+# endif
.localentry ffi_go_closure_linux64, . - ffi_go_closure_linux64
# else
.section ".opd","aw"