This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH][alpha] Fix ____longjmp_chk
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: libc-ports at sourceware dot org
- Date: Sat, 19 Mar 2011 13:29:29 +0100
- Subject: [PATCH][alpha] Fix ____longjmp_chk
____longjmp_chk is broken on alpha due to a wrong register used for a
comparison. The patch below fixes that and with it the following
testsuite errors:
- tst-longjmp_chk.out, Error 1
- tst-chk2.out, Error 127
- tst-chk3.out, Error 127
- tst-chk5.out, Error 127
- tst-chk6.out, Error 127
- tst-lfschk2.out, Error 127
- tst-lfschk3.out, Error 127
- tst-lfschk5.out, Error 127
- tst-lfschk6.out, Error 127
2011-03-20 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/unix/sysv/linux/alpha/____longjmp_chk.S(____longjmp_chk):
Fix wrong register in stack pointer comparison.
diff --git a/sysdeps/unix/sysv/linux/alpha/____longjmp_chk.S b/sysdeps/unix/sysv/linux/alpha/____longjmp_chk.S
index 5194ed8..e0e7106 100644
--- a/sysdeps/unix/sysv/linux/alpha/____longjmp_chk.S
+++ b/sysdeps/unix/sysv/linux/alpha/____longjmp_chk.S
@@ -58,7 +58,7 @@ ____longjmp_chk:
PTR_DEMANGLE2(s3, t1)
PTR_DEMANGLE2(fp, t1)
#endif
- cmpule t0, sp, t1
+ cmpule s3, sp, t1
bne t1, .Lfail
.align 4
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net