summaryrefslogtreecommitdiff
path: root/lang/spidermonkey17
diff options
context:
space:
mode:
authormaya <maya>2016-10-04 02:30:46 +0000
committermaya <maya>2016-10-04 02:30:46 +0000
commita1f1e1a8ac8f592c21a795f1473763422245084a (patch)
tree5dd2f3e11c51ddfc37662a5aa7ec65e2aad25216 /lang/spidermonkey17
parent3f6151acd35bc6626873a632f6420943e0f729c8 (diff)
downloadpkgsrc-a1f1e1a8ac8f592c21a795f1473763422245084a.tar.gz
spidermonkey17: fix mips build.
linker was emitting bogus warnings about the code not being PIC. still fails under netbsd/mips because it (mostly) hard-codes a page size of 4K
Diffstat (limited to 'lang/spidermonkey17')
-rw-r--r--lang/spidermonkey17/distinfo3
-rw-r--r--lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp18
2 files changed, 20 insertions, 1 deletions
diff --git a/lang/spidermonkey17/distinfo b/lang/spidermonkey17/distinfo
index 5f780cd5469..37448598618 100644
--- a/lang/spidermonkey17/distinfo
+++ b/lang/spidermonkey17/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2016/10/03 02:46:47 maya Exp $
+$NetBSD: distinfo,v 1.5 2016/10/04 02:30:46 maya Exp $
SHA1 (mozjs17.0.0.tar.gz) = 7805174898c34e5d3c3b256117af9944ba825c89
RMD160 (mozjs17.0.0.tar.gz) = 2fa3a891da2a7a09019f67c1555c03bcdc51e6c5
@@ -17,5 +17,6 @@ SHA1 (patch-js_src_jsgc.cpp) = 0e617094a4b7d87cdf801d9bc4ac1f52d909a12a
SHA1 (patch-js_src_jsinterp.cpp) = bee8bdde7dd951dbfbe5b049eb502f7412fbf8e6
SHA1 (patch-js_src_jsmath.cpp) = 04b0081e5abc1de3df5bdfc78db3971fe77da3d4
SHA1 (patch-js_src_methodjit_MethodJIT.cpp) = f2b12fa554ec319b5848b1cc13ec17ef967b08d7
+SHA1 (patch-js_src_methodjit_TrampolineMIPS.cpp) = d162f8e9a903bd55cf7c92c345a169a8ec050d10
SHA1 (patch-mfbt_double-conversion_utils.h) = d4f2a7c1eb7aa72a147c7f1f4147dfb5fe38ac92
SHA1 (patch-ml) = fdb4452a613f7ca185cd6b936538bec9ef97c4c1
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"