about summary refs log tree commit diff
path: root/src/setjmp
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-19 21:20:08 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-19 21:20:08 -0400
commitcf1a9d9d16a79322df15b344a2617b79ebb12705 (patch)
tree0e241ff8febfb8487087728b77ad12c8f08ba064 /src/setjmp
parenta880e6ceb9c2e6f38a6b50f8aafab90256c04be1 (diff)
downloadmusl-cf1a9d9d16a79322df15b344a2617b79ebb12705.tar.gz
musl-cf1a9d9d16a79322df15b344a2617b79ebb12705.tar.xz
musl-cf1a9d9d16a79322df15b344a2617b79ebb12705.zip
remove possible-textrels from powerpc asm
these are perfectly fine with ld-time symbol binding, but otherwise
result in textrels. they cannot be replaced with @PLT jump targets
because the PLT thunks require a GOT register to be setup, so use a
hidden alias instead.
Diffstat (limited to 'src/setjmp')
-rw-r--r--src/setjmp/powerpc/setjmp.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/setjmp/powerpc/setjmp.s b/src/setjmp/powerpc/setjmp.s
index e39687aa..122177f1 100644
--- a/src/setjmp/powerpc/setjmp.s
+++ b/src/setjmp/powerpc/setjmp.s
@@ -1,9 +1,12 @@
+	.global ___setjmp
+	.hidden ___setjmp
 	.global __setjmp
 	.global _setjmp
 	.global setjmp
 	.type   __setjmp,@function
 	.type   _setjmp,@function
 	.type   setjmp,@function
+___setjmp:
 __setjmp:
 _setjmp:
 setjmp: