author | Wolfgang Rosenauer <wr@rosenauer.org> |
Mon, 14 Apr 2014 09:09:11 +0200 | |
changeset 716 | cef565f1c325 |
parent 714 | b686e856c800 |
permissions | -rw-r--r-- |
714
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
Index: mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
2 |
=================================================================== |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
3 |
--- mozilla.orig/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
4 |
+++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ppc64_linux.S |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
5 |
@@ -41,6 +41,11 @@ SharedStub: |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
6 |
.section ".text" |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
7 |
.align 2 |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
8 |
.globl SharedStub |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
9 |
+ # Make the symbol hidden so that the branch from the stub does |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
10 |
+ # not go via a PLT. This is not only better for performance, |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
11 |
+ # but may be necessary to avoid linker errors since there is |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
12 |
+ # no place to restore the TOC register in a sibling call. |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
13 |
+ .hidden SharedStub |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
14 |
.section ".opd","aw" |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
15 |
.align 3 |
b686e856c800
import PPC64(LE) changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
16 |