summaryrefslogtreecommitdiff
path: root/mozilla-973977.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@anakreon.cz>2014-05-23 17:36:59 +0200
committerMartin Stransky <stransky@anakreon.cz>2014-05-23 17:36:59 +0200
commitbf41727bb6bf506fef0cfbc783828ed353ebbbde (patch)
tree8a9c0d3fb1302f400ed60c340de5b4340536d154 /mozilla-973977.patch
parentEnabled necko-wifi (diff)
downloadlibrewolf-fedora-ff-bf41727bb6bf506fef0cfbc783828ed353ebbbde.tar.gz
librewolf-fedora-ff-bf41727bb6bf506fef0cfbc783828ed353ebbbde.tar.bz2
librewolf-fedora-ff-bf41727bb6bf506fef0cfbc783828ed353ebbbde.zip
Added a build fix for ppc64 - rhbz#1100495
Diffstat (limited to 'mozilla-973977.patch')
-rw-r--r--mozilla-973977.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/mozilla-973977.patch b/mozilla-973977.patch
new file mode 100644
index 0000000..d8ec932
--- /dev/null
+++ b/mozilla-973977.patch
@@ -0,0 +1,31 @@
+# HG changeset patch
+# Parent c2172c2aaa693e00c989f76c83b83a2be97afaab
+# User Ulrich Weigand <uweigand@de.ibm.com>
+Bug 973977 - Mark SharedStub hidden to fix ppc64 build failure
+
+
+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
+@@ -15,16 +15,21 @@
+ .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
+
+ .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
+
+ SharedStub:
+ .quad .SharedStub,.TOC.@tocbase
+ .previous
+ .type SharedStub,@function
+
bgstack15