ia64: setjmp: use HIDDEN_JUMPTARGET

Rather than opencode the __GI_xxx logic, use proper hidden helpers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2013-12-30 08:43:20 +00:00
parent 88dd1da188
commit d97ae285e8
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2013-12-30 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/ia64/setjmp.S (setjmp): Call __sigsetjmp
via HIDDEN_JUMPTARGET.
(_setjmp): Likewise.
(__sigsetjmp): Delete strong_alias. Call libc_hidden_def and
rtld_hidden_def.
2013-12-29 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/ia64/syscall.S: Add a comment.

View File

@ -71,13 +71,13 @@
LEAF(setjmp)
alloc r8=ar.pfs,2,0,0,0
mov in1=1
br.cond.sptk.many _GI___sigsetjmp
br.cond.sptk.many HIDDEN_JUMPTARGET(__sigsetjmp)
END(setjmp)
LEAF(_setjmp)
alloc r8=ar.pfs,2,0,0,0
mov in1=0
br.cond.sptk.many _GI___sigsetjmp
br.cond.sptk.many HIDDEN_JUMPTARGET(__sigsetjmp)
END(_setjmp)
libc_hidden_def (_setjmp)
@ -191,7 +191,8 @@ ENTRY(__sigsetjmp)
mov r8=0
ret
END(__sigsetjmp)
strong_alias(__sigsetjmp, _GI___sigsetjmp)
libc_hidden_def (__sigsetjmp)
rtld_hidden_def (__sigsetjmp)
weak_extern(_setjmp)
weak_extern(setjmp)