#!/bin/sh -e if [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts patch_opts="${patch_opts:--f --no-backup-if-mismatch}" case "$1" in -patch) patch $patch_opts -p1 < $0;; -unpatch) patch $patch_opts -p1 -R < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ --- firefox-1.5.dfsg+1.5.0.3.orig/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp +++ firefox-1.5.dfsg+1.5.0.3/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp @@ -212,7 +212,7 @@ "add sp, sp, r4 \n\t" /* restore stack pointer */ "mov %0, r0 \n\t" /* the result... */ : "=r" (result) - : "r" (&my_params) + : "r" (&my_params), "m" (my_params) : "r0", "r1", "r2", "r3", "r4", "ip", "lr", "sp" ); --- firefox-1.5.dfsg+1.5.0.3.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp +++ firefox-1.5.dfsg+1.5.0.3/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp @@ -45,7 +45,8 @@ #endif /* Specify explicitly a symbol for this function, don't try to guess the c++ mangled symbol. */ -static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch"); +static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch") +__attribute__((used)); static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args)