Hi, with gcc3 offset of the vtable is changed so one should do this to xptinvoke_asm_mips.s:
# calculate the function we need to jump to, # which must then be saved in t9 lw t9, 0(a0) addu t9, t9, t1 # lw t9, 8(t9) lw t9, 0(t9) # ZZZ changed offset 8 to 0 to get "correct" method address for gcc 3 sorry for most likely useless response - just joined myself Regards, Sergey "Doug Turner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David LIBAULT wrote: > > Hi, > > > > I have cross-built mozilla-1.7.3 with the following mipsel-linux toolchain : > > > > - binutils-2.13.2.1 > > - gcc-3.2.2 > > - glibc-2.2.5 > > > > The XPT test program fails on the target : > > > > # TestXPTCInvoke > > calling direct: > > 1 + 1 = 2 > > 1L + 1L = 2 > > 2 * 2 = 4 > > 2L * 2L = 4 > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 > > 1 + 2 = 3.000000f > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55.000000 > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55.000000f > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 > > + 17 + 18 + 19 + 20 = 210.000000f > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 > > 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 = 66.000000 > > moo cow = milk > > calling via invoke: > > Segmentation fault (core dumped) > > > > Can someone help me finding where to start to fix this ? > > > > Thanks, > > > > Regards, > > > > David. > > _______________________________________________ > > mozilla-builds mailing list > > [EMAIL PROTECTED] > > http://mail.mozilla.org/listinfo/mozilla-builds > > > > ------------------------------------------------------- > > > I would start here: > > http://www.mozilla.org/scriptable/xptcall-faq.html > > It sounds like the mipsel xptcall code is broken. I don't know enough > about mipsel to tell if you if it can simply share an existing xptcall > port > (http://lxr.mozilla.org/seamonkey/source/xpcom/reflect/xptcall/status.html). > > I hope this helps. Let me know if you have any other questions. > > Doug _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
