aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sparc/sparc32
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-08-22 16:53:57 -0700
committerDavid S. Miller <davem@davemloft.net>2011-08-22 16:53:57 -0700
commit25ad0df13b48d9b7cf4db7190cec09d0393bd6d0 (patch)
tree86630b546bf8f3d1f8a23d9ddc3997ca6c559152 /sysdeps/unix/sysv/linux/sparc/sparc32
parent304c6e0b2c4d10a6cc2afdb42152aad1cf432c3a (diff)
downloadglibc-25ad0df13b48d9b7cf4db7190cec09d0393bd6d0.tar
glibc-25ad0df13b48d9b7cf4db7190cec09d0393bd6d0.tar.gz
glibc-25ad0df13b48d9b7cf4db7190cec09d0393bd6d0.tar.bz2
glibc-25ad0df13b48d9b7cf4db7190cec09d0393bd6d0.zip
Bug fixes for ____longjmp_chk on sparc.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/sparc32')
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S11
1 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S b/sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S
index 0ecd7ddf83..bbb9eaa737 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S
@@ -41,10 +41,14 @@ ENTRY (____longjmp_chk)
nop
save %sp, -80, %sp
+ cfi_remember_state
+ cfi_def_cfa_register(%fp)
+ cfi_window_save
+ cfi_register(%o7, %i7)
clr %o0
add %sp, 64, %o1
- set __NR_sigaltstack, %g1
+ LOADSYSCALL(sigaltstack)
ta 0x10
bcs .Lok
ld [%sp + 64 + 4], %o2
@@ -54,8 +58,8 @@ ENTRY (____longjmp_chk)
ld [%sp + 64 + 8], %o1
add %o0, %o1, %o0
- sub %o0, %g3, %o0
- cmp %o1, %o0
+ sub %o0, %g5, %o0
+ cmp %o0, %o1
bgeu .Lok
nop
@@ -76,6 +80,7 @@ ENTRY (____longjmp_chk)
.Lok:
restore
+ cfi_restore_state
.Lok_norestore:
ld ENV(o0,JB_FP), %g3 /* Cache target FP in register %g3. */