pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey17 spidermonkey17: fix mips build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba6fb5e5b815
branches:  trunk
changeset: 353380:ba6fb5e5b815
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Oct 04 02:30:46 2016 +0000

description:
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:

 lang/spidermonkey17/distinfo                                          |   3 +-
 lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp |  18 ++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r b3de386e7629 -r ba6fb5e5b815 lang/spidermonkey17/distinfo
--- a/lang/spidermonkey17/distinfo      Mon Oct 03 20:39:43 2016 +0000
+++ b/lang/spidermonkey17/distinfo      Tue Oct 04 02:30:46 2016 +0000
@@ -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_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 -r b3de386e7629 -r ba6fb5e5b815 lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey17/patches/patch-js_src_methodjit_TrampolineMIPS.cpp     Tue Oct 04 02:30:46 2016 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index