aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-09-22 15:58:35 +0200
committerIngela Anderton Andin <[email protected]>2014-09-22 15:58:35 +0200
commitf5919f44bba5cd8451735086e75f6483e000b2a1 (patch)
tree27e4cc6e380ed8926715b67b7d6fe8ce9272ea4e /erts/emulator/hipe
parent937f447df79b7dfa6d7df7c8d208f23a192baffa (diff)
parentc02166a6fccac8b6108a99a6bd95ffad6ac6f709 (diff)
downloadotp-f5919f44bba5cd8451735086e75f6483e000b2a1.tar.gz
otp-f5919f44bba5cd8451735086e75f6483e000b2a1.tar.bz2
otp-f5919f44bba5cd8451735086e75f6483e000b2a1.zip
Merge remote-tracking branch 'upstream/maint'
Diffstat (limited to 'erts/emulator/hipe')
-rw-r--r--erts/emulator/hipe/hipe_amd64_bifs.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_amd64_bifs.m4 b/erts/emulator/hipe/hipe_amd64_bifs.m4
index 0de69a617f..a3219c7586 100644
--- a/erts/emulator/hipe/hipe_amd64_bifs.m4
+++ b/erts/emulator/hipe/hipe_amd64_bifs.m4
@@ -39,7 +39,10 @@ define(HANDLE_GOT_MBUF,`
jmp 2b')
`#if defined(ERTS_ENABLE_LOCK_CHECK) && defined(ERTS_SMP)
-# define CALL_BIF(F) movq $CSYM(F), P_BIF_CALLEE(P); call CSYM(hipe_debug_bif_wrapper)
+# define CALL_BIF(F) \
+ movq CSYM(F)@GOTPCREL(%rip), %r11; \
+ movq %r11, P_BIF_CALLEE(P); \
+ call CSYM(hipe_debug_bif_wrapper)
#else
# define CALL_BIF(F) call CSYM(F)
#endif'