summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-08-08 21:24:28 +0000
committerJakub Jelinek <jakub@redhat.com>2005-08-08 21:24:28 +0000
commitc633e822b473e8135a36e413c5b79d7ce5a5d1fc (patch)
treee5df9cdd3adf75d668514db59074d3ec55442c2d /sysdeps
parentedf63004732b28995411cf3dca34215cf2982901 (diff)
* 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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/dl-osinfo.h2
1 files changed, 1 insertions, 1 deletions
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;