Hello community, here is the log from the commit of package seamonkey for openSUSE:Factory checked in at 2014-03-21 13:51:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/seamonkey (Old) and /work/SRC/openSUSE:Factory/.seamonkey.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "seamonkey" Changes: -------- --- /work/SRC/openSUSE:Factory/seamonkey/seamonkey.changes 2014-02-11 10:45:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.seamonkey.new/seamonkey.changes 2014-03-21 13:51:31.000000000 +0100 @@ -1,0 +2,39 @@ +Wed Mar 19 13:31:58 UTC 2014 - [email protected] + +- update to SeaMonkey 2.25 (bnc#868603) + * MFSA 2014-15/CVE-2014-1493/CVE-2014-1494 + Miscellaneous memory safety hazards + * MFSA 2014-17/CVE-2014-1497 (bmo#966311) + Out of bounds read during WAV file decoding + * MFSA 2014-18/CVE-2014-1498 (bmo#935618) + crypto.generateCRMFRequest does not validate type of key + * MFSA 2014-19/CVE-2014-1499 (bmo#961512) + Spoofing attack on WebRTC permission prompt + * MFSA 2014-20/CVE-2014-1500 (bmo#956524) + onbeforeunload and Javascript navigation DOS + * MFSA 2014-22/CVE-2014-1502 (bmo#972622) + WebGL content injection from one domain to rendering in another + * MFSA 2014-23/CVE-2014-1504 (bmo#911547) + Content Security Policy for data: documents not preserved by + session restore + * MFSA 2014-26/CVE-2014-1508 (bmo#963198) + Information disclosure through polygon rendering in MathML + * MFSA 2014-27/CVE-2014-1509 (bmo#966021) + Memory corruption in Cairo during PDF font rendering + * MFSA 2014-28/CVE-2014-1505 (bmo#941887) + SVG filters information disclosure through feDisplacementMap + * MFSA 2014-29/CVE-2014-1510/CVE-2014-1511 (bmo#982906, bmo#982909) + Privilege escalation using WebIDL-implemented APIs + * MFSA 2014-30/CVE-2014-1512 (bmo#982957) + Use-after-free in TypeObject + * MFSA 2014-31/CVE-2014-1513 (bmo#982974) + Out-of-bounds read/write through neutering ArrayBuffer objects + * MFSA 2014-32/CVE-2014-1514 (bmo#983344) + Out-of-bounds write through TypedArrayObject after neutering +- requires NSPR 4.10.3 and NSS 3.15.5 +- new build dependency (and recommends): + * libpulse +- update of PowerPC 64 patches (bmo#976648) ([email protected]) +- rebased patches + +------------------------------------------------------------------- Old: ---- l10n-2.24.tar.bz2 mozilla-libffi-ppc64le.patch mozilla-ppc64le.patch mozilla-xpcom-ppc64le.patch seamonkey-2.24-source.tar.bz2 New: ---- l10n-2.25.tar.bz2 mozilla-ppc64le-build.patch mozilla-ppc64le-javascript.patch mozilla-ppc64le-libffi.patch mozilla-ppc64le-mfbt.patch mozilla-ppc64le-webrtc.patch mozilla-ppc64le-xpcom.patch seamonkey-2.25-source.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ seamonkey.spec ++++++ --- /var/tmp/diff_new_pack.uVznEY/_old 2014-03-21 13:51:38.000000000 +0100 +++ /var/tmp/diff_new_pack.uVznEY/_new 2014-03-21 13:51:38.000000000 +0100 @@ -47,6 +47,7 @@ %else BuildRequires: wireless-tools %endif +BuildRequires: pkgconfig(libpulse) %if %suse_version > 1210 BuildRequires: pkgconfig(gstreamer-%gstreamer_ver) BuildRequires: pkgconfig(gstreamer-app-%gstreamer_ver) @@ -54,9 +55,9 @@ %endif Provides: web_browser Provides: browser(npapi) -Version: 2.24 +Version: 2.25 Release: 0 -%define releasedate 2014020300 +%define releasedate 2014031800 Summary: The successor of the Mozilla Application Suite License: MPL-2.0 Group: Productivity/Networking/Web/Browsers @@ -81,9 +82,12 @@ Patch8: mozilla-ua-locale.patch Patch9: mozilla-ppc.patch Patch12: mozilla-libproxy-compat.patch -Patch13: mozilla-libffi-ppc64le.patch -Patch14: mozilla-xpcom-ppc64le.patch -Patch15: mozilla-ppc64le.patch +Patch13: mozilla-ppc64le-build.patch +Patch14: mozilla-ppc64le-javascript.patch +Patch15: mozilla-ppc64le-libffi.patch +Patch16: mozilla-ppc64le-mfbt.patch +Patch17: mozilla-ppc64le-webrtc.patch +Patch18: mozilla-ppc64le-xpcom.patch Patch20: seamonkey-ua-locale.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: /bin/sh coreutils @@ -91,6 +95,8 @@ Obsoletes: seamonkey-mail <= 2.0 Provides: seamonkey-spellchecker = %{version} Obsoletes: seamonkey-spellchecker <= 2.0 +Recommends: libcanberra0 +Recommends: libpulse0 %define progname %{name} %define prefix /usr %define progdir %_libdir/%{progname} @@ -105,9 +111,9 @@ %global __find_provides %provfind # the following conditions are always met in Factory by definition # so using %opensuse_bs is secure for now -BuildRequires: mozilla-nspr-devel +BuildRequires: mozilla-nspr-devel >= 4.10.2 PreReq: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) -BuildRequires: mozilla-nss-devel >= 3.15.4 +BuildRequires: mozilla-nss-devel >= 3.15.5 PreReq: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) %description @@ -191,6 +197,9 @@ %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 -p1 popd # comm patches %patch20 -p1 ++++++ compare-locales.tar.bz2 ++++++ ++++++ create-tar.sh ++++++ --- /var/tmp/diff_new_pack.uVznEY/_old 2014-03-21 13:51:38.000000000 +0100 +++ /var/tmp/diff_new_pack.uVznEY/_new 2014-03-21 13:51:38.000000000 +0100 @@ -2,8 +2,8 @@ CHANNEL="release" BRANCH="releases/comm-$CHANNEL" -RELEASE_TAG="SEAMONKEY_2_24_RELEASE" -VERSION="2.24" +RELEASE_TAG="SEAMONKEY_2_25_RELEASE" +VERSION="2.25" echo "cloning $BRANCH..." hg clone http://hg.mozilla.org/$BRANCH seamonkey ++++++ l10n-2.24.tar.bz2 -> l10n-2.25.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/seamonkey/l10n-2.24.tar.bz2 /work/SRC/openSUSE:Factory/.seamonkey.new/l10n-2.25.tar.bz2 differ: char 11, line 1 ++++++ mozilla-ppc64le-build.patch ++++++ ++++ 4491 lines (skipped) ++++++ mozilla-ppc64le-javascript.patch ++++++ # HG changeset patch # Parent e6f9fc7c1611990ed9fdafd3ff19c79fd356a1d6 # User Ulrich Weigand <[email protected]> Bug 976648 - powerpc64le-linux support - JavaScript build/config diff --git a/js/src/assembler/wtf/Platform.h b/js/src/assembler/wtf/Platform.h --- a/js/src/assembler/wtf/Platform.h +++ b/js/src/assembler/wtf/Platform.h @@ -160,26 +160,32 @@ /* WTF_CPU_PPC - PowerPC 32-bit */ #if defined(__ppc__) \ || defined(__PPC__) \ || defined(__powerpc__) \ || defined(__powerpc) \ || defined(__POWERPC__) \ || defined(_M_PPC) \ || defined(__PPC) +#if !defined(__ppc64__) && !defined(__PPC64__) #define WTF_CPU_PPC 1 +#endif +#if !defined(__LITTLE_ENDIAN__) #define WTF_CPU_BIG_ENDIAN 1 #endif +#endif /* WTF_CPU_PPC64 - PowerPC 64-bit */ #if defined(__ppc64__) \ || defined(__PPC64__) #define WTF_CPU_PPC64 1 +#if !defined(__LITTLE_ENDIAN__) #define WTF_CPU_BIG_ENDIAN 1 #endif +#endif /* WTF_CPU_SH4 - SuperH SH-4 */ #if defined(__SH4__) #define WTF_CPU_SH4 1 #endif /* WTF_CPU_SPARC32 - SPARC 32-bit */ #if defined(__sparc) && !defined(__arch64__) || defined(__sparcv8) diff --git a/js/src/configure.in b/js/src/configure.in --- a/js/src/configure.in +++ b/js/src/configure.in @@ -923,17 +923,17 @@ esac # Only set CPU_ARCH if we recognize the value of OS_TEST case "$OS_TEST" in *86 | i86pc) CPU_ARCH=x86 ;; -powerpc64 | ppc64) +powerpc64 | ppc64 | powerpc64le | ppc64le) CPU_ARCH=ppc64 ;; powerpc | ppc | rs6000) CPU_ARCH=ppc ;; Alpha | alpha | ALPHA) diff --git a/js/src/jscpucfg.h b/js/src/jscpucfg.h --- a/js/src/jscpucfg.h +++ b/js/src/jscpucfg.h @@ -22,17 +22,17 @@ # ifdef __WATCOMC__ # define HAVE_VA_LIST_AS_ARRAY 1 # endif # define IS_LITTLE_ENDIAN 1 # undef IS_BIG_ENDIAN -#elif defined(__APPLE__) +#elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__) # if __LITTLE_ENDIAN__ # define IS_LITTLE_ENDIAN 1 # undef IS_BIG_ENDIAN # elif __BIG_ENDIAN__ # undef IS_LITTLE_ENDIAN # define IS_BIG_ENDIAN 1 # endif @@ -84,18 +84,17 @@ # if defined(_STACK_GROWS_UPWARD) # define JS_STACK_GROWTH_DIRECTION (1) # elif defined(_STACK_GROWS_DOWNWARD) # define JS_STACK_GROWTH_DIRECTION (-1) # endif # endif #elif defined(__sparc) || defined(__sparc__) || \ - defined(_POWER) || defined(__powerpc__) || \ - defined(__ppc__) || defined(__hppa) || \ + defined(_POWER) || defined(__hppa) || \ defined(_MIPSEB) || defined(_BIG_ENDIAN) /* IA64 running HP-UX will have _BIG_ENDIAN defined. * IA64 running Linux will have endian.h and be handled above. */ # undef IS_LITTLE_ENDIAN # define IS_BIG_ENDIAN 1 #else /* !defined(__sparc) && !defined(__sparc__) && ... */ ++++++ mozilla-ppc64le-libffi.patch ++++++ ++++ 3206 lines (skipped) ++++++ mozilla-ppc64le-mfbt.patch ++++++ # HG changeset patch # Parent 147a75fe8f8e4a43b66f9716659e1209d7f5a950 # User Ulrich Weigand <[email protected]> Bug 976648 - powerpc64le-linux support - mfbt endian config diff --git a/mfbt/Endian.h b/mfbt/Endian.h --- a/mfbt/Endian.h +++ b/mfbt/Endian.h @@ -86,17 +86,17 @@ # error "CPU type is unknown" # endif #elif defined(_WIN32) # if defined(_M_IX86) # define MOZ_LITTLE_ENDIAN 1 # else # error "CPU type is unknown" # endif -#elif defined(__APPLE__) +#elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__) # if __LITTLE_ENDIAN__ # define MOZ_LITTLE_ENDIAN 1 # elif __BIG_ENDIAN__ # define MOZ_BIG_ENDIAN 1 # endif #elif defined(__GNUC__) && \ defined(__BYTE_ORDER__) && \ defined(__ORDER_LITTLE_ENDIAN__) && \ @@ -114,18 +114,17 @@ # endif /* * We can't include useful headers like <endian.h> or <sys/isa_defs.h> * here because they're not present on all platforms. Instead we have * this big conditional that ideally will catch all the interesting * cases. */ #elif defined(__sparc) || defined(__sparc__) || \ - defined(_POWER) || defined(__powerpc__) || \ - defined(__ppc__) || defined(__hppa) || \ + defined(_POWER) || defined(__hppa) || \ defined(_MIPSEB) || defined(__ARMEB__) || \ defined(__s390__) || \ (defined(__sh__) && defined(__LITTLE_ENDIAN__)) || \ (defined(__ia64) && defined(__BIG_ENDIAN__)) # define MOZ_BIG_ENDIAN 1 #elif defined(__i386) || defined(__i386__) || \ defined(__x86_64) || defined(__x86_64__) || \ defined(_MIPSEL) || defined(__ARMEL__) || \ ++++++ mozilla-ppc64le-webrtc.patch ++++++ # HG changeset patch # Parent acbe154db4c912f3ac853c0671cd3d5e52b1e716 # User Ulrich Weigand <[email protected]> Bug 976648 - powerpc64le-linux support - WebRTC endian config diff --git a/media/webrtc/trunk/webrtc/typedefs.h b/media/webrtc/trunk/webrtc/typedefs.h --- a/media/webrtc/trunk/webrtc/typedefs.h +++ b/media/webrtc/trunk/webrtc/typedefs.h @@ -47,23 +47,33 @@ //#define WEBRTC_ARCH_ARM_FAMILY //#define WEBRTC_ARCH_ARMEL #define WEBRTC_ARCH_32_BITS #define WEBRTC_ARCH_LITTLE_ENDIAN #define WEBRTC_LITTLE_ENDIAN #elif defined(__powerpc64__) #define WEBRTC_ARCH_PPC64 1 #define WEBRTC_ARCH_64_BITS 1 +#ifdef __LITTLE_ENDIAN__ +#define WEBRTC_ARCH_LITTLE_ENDIAN +#define WEBRTC_LITTLE_ENDIAN +#else #define WEBRTC_ARCH_BIG_ENDIAN #define WEBRTC_BIG_ENDIAN +#endif #elif defined(__ppc__) || defined(__powerpc__) #define WEBRTC_ARCH_PPC 1 #define WEBRTC_ARCH_32_BITS 1 +#ifdef __LITTLE_ENDIAN__ +#define WEBRTC_ARCH_LITTLE_ENDIAN +#define WEBRTC_LITTLE_ENDIAN +#else #define WEBRTC_ARCH_BIG_ENDIAN #define WEBRTC_BIG_ENDIAN +#endif #elif defined(__sparc64__) #define WEBRTC_ARCH_SPARC 1 #define WEBRTC_ARCH_64_BITS 1 #define WEBRTC_ARCH_BIG_ENDIAN #define WEBRTC_BIG_ENDIAN #elif defined(__sparc__) #define WEBRTC_ARCH_SPARC 1 #define WEBRTC_ARCH_32_BITS 1 ++++++ mozilla-ppc64le-xpcom.patch ++++++ # HG changeset patch # Parent 571f8d1f1501d31bd7c0d0affdc7cdc8b21203a0 # User Ulrich Weigand <[email protected]> Bug 976648 - powerpc64le-linux support - xptcall port diff --git a/xpcom/reflect/xptcall/src/md/unix/moz.build b/xpcom/reflect/xptcall/src/md/unix/moz.build --- a/xpcom/reflect/xptcall/src/md/unix/moz.build +++ b/xpcom/reflect/xptcall/src/md/unix/moz.build @@ -228,16 +228,23 @@ if CONFIG['OS_TEST'] == 'powerpc64': if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'): SOURCES += [ 'xptcinvoke_asm_ppc64_linux.s', 'xptcinvoke_ppc64_linux.cpp', 'xptcstubs_asm_ppc64_linux.s', 'xptcstubs_ppc64_linux.cpp', ] +if CONFIG['OS_TEST'] == 'powerpc64le': + if CONFIG['OS_ARCH'] == 'Linux': + CPP_SOURCES += [ + 'xptcinvoke_ppc64_linux.cpp', + 'xptcstubs_ppc64_linux.cpp', + ] + if CONFIG['OS_TEST'] in ('macppc', 'bebox', 'ofppc', 'prep', 'amigappc'): if CONFIG['OS_ARCH'] == 'NetBSD': SOURCES += [ 'xptcinvoke_asm_ppc_netbsd.s', 'xptcinvoke_ppc_netbsd.cpp', 'xptcstubs_asm_ppc_netbsd.s', 'xptcstubs_ppc_netbsd.cpp', ] diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s --- a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s +++ b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s @@ -12,90 +12,121 @@ .set f0,0; .set f1,1; .set f2,2; .set f3,3; .set f4,4 .set f5,5; .set f6,6; .set f7,7; .set f8,8; .set f9,9 .set f10,10; .set f11,11; .set f12,12; .set f13,13; .set f14,14 .set f15,15; .set f16,16; .set f17,17; .set f18,18; .set f19,19 .set f20,20; .set f21,21; .set f22,22; .set f23,23; .set f24,24 .set f25,25; .set f26,26; .set f27,27; .set f28,28; .set f29,29 .set f30,30; .set f31,31 +# The ABI defines a fixed stack frame area of 4 doublewords (ELFv2) +# or 6 doublewords (ELFv1); the last of these doublewords is used +# as TOC pointer save area. The fixed area is followed by a parameter +# save area of 8 doublewords (used for vararg routines), followed +# by space for parameters passed on the stack. +# +# We set STACK_TOC to the offset of the TOC pointer save area, and +# STACK_PARAMS to the offset of the first on-stack parameter. + +#if _CALL_ELF == 2 +#define STACK_TOC 24 +#define STACK_PARAMS 96 +#else +#define STACK_TOC 40 +#define STACK_PARAMS 112 +#endif # # NS_InvokeByIndex(nsISupports* that, uint32_t methodIndex, # uint32_t paramCount, nsXPTCVariant* params) # +#if _CALL_ELF == 2 + .section ".text" + .type NS_InvokeByIndex,@function + .globl NS_InvokeByIndex + .align 2 +NS_InvokeByIndex: +0: addis 2,12,(.TOC.-0b)@ha + addi 2,2,(.TOC.-0b)@l + .localentry NS_InvokeByIndex,.-NS_InvokeByIndex +#else .section ".toc","aw" .section ".text" .align 2 .globl NS_InvokeByIndex .section ".opd","aw" .align 3 NS_InvokeByIndex: .quad .NS_InvokeByIndex,.TOC.@tocbase .previous .type NS_InvokeByIndex,@function .NS_InvokeByIndex: +#endif mflr 0 std 0,16(r1) std r29,-24(r1) std r30,-16(r1) std r31,-8(r1) mr r29,r3 # Save 'that' in r29 mr r30,r4 # Save 'methodIndex' in r30 mr r31,r1 # Save old frame # Allocate stack frame with space for params. Since at least the # first 7 parameters (not including 'that') will be in registers, # we don't actually need stack space for those. We must ensure # that the stack remains 16-byte aligned. # - # | ..128-byte stack frame.. | | 7 GP | 13 FP | 3 NV | - # | |(params)........| regs | regs | regs | - # (r1)...........(+112)....(+128) - # (-23*8).(-16*8).(-3*8)..(r31) + # | (fixed area + | | 7 GP | 13 FP | 3 NV | + # | param. save) |(params)........| regs | regs | regs | + # (r1)......(+STACK_PARAMS)... (-23*8).(-16*8).(-3*8)..(r31) # +stack frame, -unused stack params, +regs storage, +1 for alignment - addi r7,r5,((112/8)-7+7+13+3+1) + addi r7,r5,((STACK_PARAMS/8)-7+7+13+3+1) rldicr r7,r7,3,59 # multiply by 8 and mask with ~15 neg r7,r7 stdux r1,r1,r7 # Call invoke_copy_to_stack(uint64_t* gpregs, double* fpregs, # uint32_t paramCount, nsXPTCVariant* s, # uint64_t* d)) # r5, r6 are passed through intact (paramCount, params) - # r7 (d) has to be r1+112 -- where parameters are passed on the stack. + # r7 (d) has to be r1+STACK_PARAMS + # -- where parameters are passed on the stack. # r3, r4 are above that, easier to address from r31 than from r1 subi r3,r31,(23*8) # r3 --> GPRS subi r4,r31,(16*8) # r4 --> FPRS - addi r7,r1,112 # r7 --> params + addi r7,r1,STACK_PARAMS # r7 --> params bl invoke_copy_to_stack nop # Set up to invoke function ld r9,0(r29) # vtable (r29 is 'that') mr r3,r29 # self is first arg, obviously sldi r30,r30,3 # Find function descriptor add r9,r9,r30 - ld r9,0(r9) + ld r12,0(r9) - ld r0,0(r9) # Actual address from fd. - std r2,40(r1) # Save r2 (TOC pointer) + std r2,STACK_TOC(r1) # Save r2 (TOC pointer) +#if _CALL_ELF == 2 + mtctr r12 +#else + ld r0,0(r12) # Actual address from fd. mtctr 0 - ld r11,16(r9) # Environment pointer from fd. - ld r2,8(r9) # TOC pointer from fd. + ld r11,16(r12) # Environment pointer from fd. + ld r2,8(r12) # TOC pointer from fd. +#endif # Load FP and GP registers as required ld r4, -(23*8)(r31) ld r5, -(22*8)(r31) ld r6, -(21*8)(r31) ld r7, -(20*8)(r31) ld r8, -(19*8)(r31) ld r9, -(18*8)(r31) @@ -112,21 +143,25 @@ NS_InvokeByIndex: lfd f9, -(8*8)(r31) lfd f10, -(7*8)(r31) lfd f11, -(6*8)(r31) lfd f12, -(5*8)(r31) lfd f13, -(4*8)(r31) bctrl # Do it - ld r2,40(r1) # Load our own TOC pointer + ld r2,STACK_TOC(r1) # Load our own TOC pointer ld r1,0(r1) # Revert stack frame ld 0,16(r1) # Reload lr ld 29,-24(r1) # Restore NVGPRS ld 30,-16(r1) ld 31,-8(r1) mtlr 0 blr +#if _CALL_ELF == 2 + .size NS_InvokeByIndex,.-NS_InvokeByIndex +#else .size NS_InvokeByIndex,.-.NS_InvokeByIndex +#endif # Magic indicating no need for an executable stack .section .note.GNU-stack, "", @progbits ; .previous diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp --- a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp +++ b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp @@ -69,17 +69,19 @@ invoke_copy_to_stack(uint64_t* gpregs, else *(double *)d = s->val.d; } else if (!s->IsPtrData() && s->type == nsXPTType::T_FLOAT) { if (i < FPR_COUNT) { fpregs[i] = s->val.f; // if passed in registers, floats are promoted to doubles } else { float *p = (float *)d; +#ifndef __LITTLE_ENDIAN__ p++; +#endif *p = s->val.f; } } else { if (i < GPR_COUNT) gpregs[i] = tempu64; else *d = tempu64; diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.s b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.s --- a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.s +++ b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.s @@ -12,28 +12,50 @@ .set f0,0; .set f1,1; .set f2,2; .set f3,3; .set f4,4 .set f5,5; .set f6,6; .set f7,7; .set f8,8; .set f9,9 .set f10,10; .set f11,11; .set f12,12; .set f13,13; .set f14,14 .set f15,15; .set f16,16; .set f17,17; .set f18,18; .set f19,19 .set f20,20; .set f21,21; .set f22,22; .set f23,23; .set f24,24 .set f25,25; .set f26,26; .set f27,27; .set f28,28; .set f29,29 .set f30,30; .set f31,31 +#if _CALL_ELF == 2 +#define STACK_PARAMS 96 +#else +#define STACK_PARAMS 112 +#endif + +#if _CALL_ELF == 2 + .section ".text" + .type SharedStub,@function + .globl SharedStub + # Make the symbol hidden so that the branch from the stub does + # not go via a PLT. This is not only better for performance, + # but may be necessary to avoid linker errors since there is + # no place to restore the TOC register in a sibling call. + .hidden SharedStub + .align 2 +SharedStub: +0: addis 2,12,(.TOC.-0b)@ha + addi 2,2,(.TOC.-0b)@l + .localentry SharedStub,.-SharedStub +#else .section ".text" .align 2 .globl SharedStub .section ".opd","aw" .align 3 SharedStub: .quad .SharedStub,.TOC.@tocbase .previous .type SharedStub,@function .SharedStub: +#endif mflr r0 std r4, -56(r1) # Save all GPRS std r5, -48(r1) std r6, -40(r1) std r7, -32(r1) std r8, -24(r1) std r9, -16(r1) @@ -50,17 +72,17 @@ SharedStub: stfd f5, -128(r1) stfd f4, -136(r1) stfd f3, -144(r1) stfd f2, -152(r1) stfd f1, -160(r1) subi r6,r1,56 # r6 --> gprData subi r7,r1,160 # r7 --> fprData - addi r5,r1,112 # r5 --> extra stack args + addi r5,r1,STACK_PARAMS # r5 --> extra stack args std r0, 16(r1) stdu r1,-288(r1) # r3 has the 'self' pointer # already mr r4,r11 # r4 is methodIndex selector, @@ -70,12 +92,16 @@ SharedStub: bl PrepareAndDispatch nop ld 1,0(r1) # restore stack ld r0,16(r1) # restore LR mtlr r0 blr +#if _CALL_ELF == 2 + .size SharedStub,.-SharedStub +#else .size SharedStub,.-.SharedStub +#endif # Magic indicating no need for an executable stack .section .note.GNU-stack, "", @progbits ; .previous diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc64_linux.cpp b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc64_linux.cpp --- a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc64_linux.cpp +++ b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc64_linux.cpp @@ -78,17 +78,19 @@ PrepareAndDispatch(nsXPTCStubBase* self, dp->val.d = fprData[i]; else dp->val.d = *(double*) ap; } else if (!param.IsOut() && type == nsXPTType::T_FLOAT) { if (i < FPR_COUNT) dp->val.f = (float) fprData[i]; // in registers floats are passed as doubles else { float *p = (float *)ap; +#ifndef __LITTLE_ENDIAN__ p++; +#endif dp->val.f = *p; } } else { /* integer type or pointer */ if (i < GPR_COUNT) tempu64 = gprData[i]; else tempu64 = *ap; @@ -148,16 +150,53 @@ PrepareAndDispatch(nsXPTCStubBase* self, // Create names would be like: // _ZN14nsXPTCStubBase5Stub1Ev // _ZN14nsXPTCStubBase6Stub12Ev // _ZN14nsXPTCStubBase7Stub123Ev // _ZN14nsXPTCStubBase8Stub1234Ev // etc. // Use assembler directives to get the names right... +#if _CALL_ELF == 2 +# define STUB_ENTRY(n) \ +__asm__ ( \ + ".section \".text\" \n\t" \ + ".align 2 \n\t" \ + ".if "#n" < 10 \n\t" \ + ".globl _ZN14nsXPTCStubBase5Stub"#n"Ev \n\t" \ + ".type _ZN14nsXPTCStubBase5Stub"#n"Ev,@function \n\n" \ +"_ZN14nsXPTCStubBase5Stub"#n"Ev: \n\t" \ + "0: addis 2,12,.TOC.-0b@ha \n\t" \ + "addi 2,2,.TOC.-0b@l \n\t" \ + ".localentry _ZN14nsXPTCStubBase5Stub"#n"Ev,.-_ZN14nsXPTCStubBase5Stub"#n"Ev \n\t" \ + \ + ".elseif "#n" < 100 \n\t" \ + ".globl _ZN14nsXPTCStubBase6Stub"#n"Ev \n\t" \ + ".type _ZN14nsXPTCStubBase6Stub"#n"Ev,@function \n\n" \ +"_ZN14nsXPTCStubBase6Stub"#n"Ev: \n\t" \ + "0: addis 2,12,.TOC.-0b@ha \n\t" \ + "addi 2,2,.TOC.-0b@l \n\t" \ + ".localentry _ZN14nsXPTCStubBase6Stub"#n"Ev,.-_ZN14nsXPTCStubBase6Stub"#n"Ev \n\t" \ + \ + ".elseif "#n" < 1000 \n\t" \ + ".globl _ZN14nsXPTCStubBase7Stub"#n"Ev \n\t" \ + ".type _ZN14nsXPTCStubBase7Stub"#n"Ev,@function \n\n" \ +"_ZN14nsXPTCStubBase7Stub"#n"Ev: \n\t" \ + "0: addis 2,12,.TOC.-0b@ha \n\t" \ + "addi 2,2,.TOC.-0b@l \n\t" \ + ".localentry _ZN14nsXPTCStubBase7Stub"#n"Ev,.-_ZN14nsXPTCStubBase7Stub"#n"Ev \n\t" \ + \ + ".else \n\t" \ + ".err \"stub number "#n" >= 1000 not yet supported\"\n" \ + ".endif \n\t" \ + \ + "li 11,"#n" \n\t" \ + "b SharedStub \n" \ +); +#else # define STUB_ENTRY(n) \ __asm__ ( \ ".section \".toc\",\"aw\" \n\t" \ ".section \".text\" \n\t" \ ".align 2 \n\t" \ ".if "#n" < 10 \n\t" \ ".globl _ZN14nsXPTCStubBase5Stub"#n"Ev \n\t" \ ".section \".opd\",\"aw\" \n\t" \ @@ -190,16 +229,17 @@ PrepareAndDispatch(nsXPTCStubBase* self, \ ".else \n\t" \ ".err \"stub number "#n" >= 1000 not yet supported\"\n" \ ".endif \n\t" \ \ "li 11,"#n" \n\t" \ "b SharedStub \n" \ ); +#endif #define SENTINEL_ENTRY(n) \ nsresult nsXPTCStubBase::Sentinel##n() \ { \ NS_ERROR("nsXPTCStubBase::Sentinel called"); \ return NS_ERROR_NOT_IMPLEMENTED; \ } ++++++ mozilla-shared-nss-db.patch ++++++ --- /var/tmp/diff_new_pack.uVznEY/_old 2014-03-21 13:51:38.000000000 +0100 +++ /var/tmp/diff_new_pack.uVznEY/_new 2014-03-21 13:51:38.000000000 +0100 @@ -7,13 +7,13 @@ diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in -@@ -7999,16 +7999,31 @@ AC_SUBST(QCMS_LIBS) - - dnl ======================================================== - dnl HarfBuzz - dnl ======================================================== - MOZ_HARFBUZZ_LIBS='$(DEPTH)/gfx/harfbuzz/src/$(LIB_PREFIX)mozharfbuzz.$(LIB_SUFFIX)' - AC_SUBST(MOZ_HARFBUZZ_LIBS) +@@ -8042,16 +8042,31 @@ if test "$MOZ_ENABLE_SKIA"; then + MOZ_ENABLE_SKIA_GPU=1 + AC_DEFINE(USE_SKIA_GPU) + AC_SUBST(MOZ_ENABLE_SKIA_GPU) + fi + fi + AC_SUBST(MOZ_ENABLE_SKIA) dnl ======================================================== +dnl Check for nss-shared-helper @@ -31,26 +31,24 @@ +AC_SUBST(NSSHELPER_LIBS) + +dnl ======================================================== - dnl SIL Graphite - dnl ======================================================== - MOZ_GRAPHITE_LIBS='$(DEPTH)/gfx/graphite2/src/$(LIB_PREFIX)mozgraphite2.$(LIB_SUFFIX)' - AC_SUBST(MOZ_GRAPHITE_LIBS) - - dnl ======================================================== - dnl OTS + dnl disable xul dnl ======================================================== + MOZ_ARG_DISABLE_BOOL(xul, + [ --disable-xul Disable XUL], + MOZ_XUL= ) + if test "$MOZ_XUL"; then + AC_DEFINE(MOZ_XUL) + else diff --git a/security/manager/ssl/src/Makefile.in b/security/manager/ssl/src/Makefile.in ---- a/security/manager/ssl/src/Makefile.in +new file mode 100644 +--- /dev/null +++ b/security/manager/ssl/src/Makefile.in -@@ -4,8 +4,11 @@ - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - - DEFINES += \ - -DNSS_ENABLE_ECC \ - -DDLL_PREFIX=\"$(DLL_PREFIX)\" \ - -DDLL_SUFFIX=\"$(DLL_SUFFIX)\" \ - $(NULL) +@@ -0,0 +1,8 @@ ++#! gmake ++# ++# This Source Code Form is subject to the terms of the Mozilla Public ++# License, v. 2.0. If a copy of the MPL was not distributed with this ++# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +LOCAL_INCLUDES += $(NSSHELPER_CFLAGS) +EXTRA_DSO_LDOPTS += $(NSSHELPER_LIBS) @@ -81,7 +79,7 @@ #include "nsAppDirectoryServiceDefs.h" #include "nsComponentManagerUtils.h" #include "nsDirectoryServiceDefs.h" -@@ -1263,18 +1270,35 @@ nsNSSComponent::InitializeNSS(bool showW +@@ -1207,18 +1214,35 @@ nsNSSComponent::InitializeNSS() ConfigureInternalPKCS11Token(); // The NSS_INIT_NOROOTINIT flag turns off the loading of the root certs @@ -95,7 +93,7 @@ + + SECStatus init_rv = SECFailure; +#ifdef MOZ_ENABLE_NSSHELPER -+ if (PR_GetEnv("MOZ_XRE_NO_NSSHELPER")) { ++ if (PR_GetEnv("MOZ_SM_NO_NSSHELPER")) { + init_rv = ::NSS_Initialize(profileStr.get(), "", "", + SECMOD_DB, init_flags); + } else { @@ -115,14 +113,14 @@ if (init_rv != SECSuccess) { PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("can not init NSS r/w in %s\n", profileStr.get())); - if (suppressWarningPref) { - which_nss_problem = problem_none; - } - else { + // try to init r/o + init_flags |= NSS_INIT_READONLY; + init_rv = ::NSS_Initialize(profileStr.get(), "", "", + SECMOD_DB, init_flags); diff --git a/toolkit/library/Makefile.in b/toolkit/library/Makefile.in --- a/toolkit/library/Makefile.in +++ b/toolkit/library/Makefile.in -@@ -484,17 +484,17 @@ LOCAL_INCLUDES += -I$(topsrcdir)/intl/un +@@ -245,17 +245,17 @@ endif ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) SDK_LIBRARY = $(IMPORT_LIBRARY) else @@ -140,4 +138,4 @@ -framework SystemConfiguration \ -framework QTKit \ -framework IOKit \ - -F/System/Library/PrivateFrameworks -framework CoreUI \ + -F$(MACOS_PRIVATE_FRAMEWORKS_DIR) -framework CoreUI \ ++++++ seamonkey-2.24-source.tar.bz2 -> seamonkey-2.25-source.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/seamonkey/seamonkey-2.24-source.tar.bz2 /work/SRC/openSUSE:Factory/.seamonkey.new/seamonkey-2.25-source.tar.bz2 differ: char 11, line 1 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
