diff options
Diffstat (limited to 'lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp')
-rw-r--r-- | lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp b/lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp new file mode 100644 index 00000000000..61223a24aa2 --- /dev/null +++ b/lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp @@ -0,0 +1,18 @@ +$NetBSD: patch-js_src_methodjit_TrampolineMIPS.cpp,v 1.1 2016/10/04 02:30:46 maya Exp $ + +shut up linker error about not being PIC +the previous code was just an expansion of this macro + +--- js/src/methodjit/TrampolineMIPS.cpp.orig 2013-02-11 22:33:23.000000000 +0000 ++++ js/src/methodjit/TrampolineMIPS.cpp +@@ -107,9 +107,7 @@ asm ( + ".type JaegerTrampoline,@function" "\n" + "JaegerTrampoline:" "\n" + #if defined(__PIC__) +- "lui $28,%hi(_gp_disp)" "\n" +- "addiu $28,$28,%lo(_gp_disp)" "\n" +- "addu $28,$28,$25" "\n" ++ ".cpload $25" "\n" + #endif + "addiu $29,$29,-112" "\n" + "sw $31,104($29)" "\n" |