mozilla-ppc64-xpcom.patch
author Wolfgang Rosenauer <wr@rosenauer.org>
Sat, 10 May 2014 08:13:15 +0200
branchfirefox29
changeset 735 3a83cd95580e
parent 714 b686e856c800
permissions -rw-r--r--
29.0.1 release

Index: mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S
===================================================================
--- mozilla.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S
+++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S
@@ -41,6 +41,11 @@ SharedStub:
         .section ".text"
         .align 2
         .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
         .section ".opd","aw"
         .align 3