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.
This commit is contained in:
Rich Felker
2015-04-19 21:20:08 -04:00
parent a880e6ceb9
commit cf1a9d9d16
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -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:
+3 -2
View File
@@ -12,7 +12,8 @@ __sigsetjmp:
stw 16, 448+4+8(3)
mr 16, 3
bl setjmp
.hidden ___setjmp
bl ___setjmp
mr 4, 3
mr 3, 16
@@ -23,4 +24,4 @@ __sigsetjmp:
.hidden __sigsetjmp_tail
b __sigsetjmp_tail
1: b setjmp
1: b ___setjmp