mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-19 19:54:16 +03:00
remove invalid PLT calls from sh asm
these are perfectly fine with ld-time symbol binding, but if the calls go through a PLT thunk, they are invalid because the caller does not setup a GOT register. use a hidden alias to bypass the issue.
This commit is contained in:
parent
b35c4c475b
commit
646cb9a4a0
@ -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:
|
||||
|
@ -34,7 +34,8 @@ __sigsetjmp:
|
||||
nop
|
||||
|
||||
.align 2
|
||||
1: .long setjmp@PLT-(2b+4-.)
|
||||
.hidden ___setjmp
|
||||
1: .long ___setjmp@PLT-(2b+4-.)
|
||||
.hidden __sigsetjmp_tail
|
||||
3: .long __sigsetjmp_tail@PLT-(4b+4-.)
|
||||
5: .long setjmp@PLT-(6b+4-.)
|
||||
5: .long ___setjmp@PLT-(6b+4-.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user