remove invalid PLT calls from or1k asm
authorRich Felker <dalias@aerifal.cx>
Mon, 20 Apr 2015 01:49:54 +0000 (21:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 20 Apr 2015 01:49:54 +0000 (21:49 -0400)
analogous to commit 646cb9a4a04e5ed78e2dd928bf9dc6e79202f609 for sh.

src/setjmp/or1k/setjmp.s
src/signal/or1k/sigsetjmp.s

index 8de4d3c2f4c8e127e6875a0381b9890d22da9e42..0677033843e003f0aa7527794278deccc3feea8c 100644 (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:
index 350c00e212e86f5e3b9598cdf6ad04b1127eadae..b9bcdae1db3bc7e8627a91782acbe9910961238c 100644 (file)
@@ -5,12 +5,13 @@
 sigsetjmp:
 __sigsetjmp:
        l.sfeq  r4, r0
-       l.bf    plt(setjmp)
+.hidden ___setjmp
+       l.bf    ___setjmp
 
        l.sw    52(r3), r9
        l.sw    52+4+8(r3), r20
 
-       l.jal   plt(setjmp)
+       l.jal   ___setjmp
         l.ori   r20, r3, 0
 
        l.ori r4, r11, 0
@@ -19,5 +20,5 @@ __sigsetjmp:
        l.lwz   r9, 52(r3)
 
 .hidden __sigsetjmp_tail
-       l.j     plt(__sigsetjmp_tail)
+       l.j     __sigsetjmp_tail
         l.lwz   r20, 52+4+8(r3)