Skip to content

Commit

Permalink
(OK) forgot adding @GOTPCREL
Browse files Browse the repository at this point in the history
  • Loading branch information
okuoku committed Jun 3, 2010
1 parent f979a26 commit d246eea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ffi_stub_x86_64.S
Expand Up @@ -72,23 +72,23 @@ arguments_done:

SYM(c_callback_stub_double):
#if APPLE_PIC
movq SYM(c_callback_double)(%rip), %r11
movq SYM(c_callback_double)@GOTPCREL(%rip), %r11
#else
movq $SYM(c_callback_double), %r11
#endif
jmp callback_stub_common

SYM(c_callback_stub_float):
#if APPLE_PIC
movq SYM(c_callback_float)(%rip), %r11
movq SYM(c_callback_float)@GOTPCREL(%rip), %r11
#else
movq $SYM(c_callback_float), %r11
#endif
jmp callback_stub_common

SYM(c_callback_stub_intptr):
#if APPLE_PIC
movq SYM(c_callback_intptr)(%rip), %r11
movq SYM(c_callback_intptr)@GOTPCREL(%rip), %r11
#else
movq $SYM(c_callback_intptr), %r11
#endif
Expand Down

0 comments on commit d246eea

Please sign in to comment.