From c633e822b473e8135a36e413c5b79d7ce5a5d1fc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 8 Aug 2005 21:24:28 +0000 Subject: * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Shift marked &errno down on big-endian instead of up. * elf/tst-stackguard1.c (do_test): Fix a typo. nptl/ * tst-stackguard1.c (do_test): Likewise. --- sysdeps/unix/sysv/linux/dl-osinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/dl-osinfo.h b/sysdeps/unix/sysv/linux/dl-osinfo.h index fb885330f9..a8291c3c1c 100644 --- a/sysdeps/unix/sysv/linux/dl-osinfo.h +++ b/sysdeps/unix/sysv/linux/dl-osinfo.h @@ -203,7 +203,7 @@ _dl_setup_stack_chk_guard (void) #if __BYTE_ORDER == __LITTLE_ENDIAN stk <<= (__WORDSIZE - 29); #else - stk <<= (__WORDSIZE == 64 ? 24 : 5); + stk >>= 8; #endif ret ^= stk; return ret; -- cgit 1.4.1