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.
+2005-08-08 Jakub Jelinek <jakub@redhat.com>
+
+ * 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.
+
2005-07-29 Jakub Jelinek <jakub@redhat.com>
- * sysdeps/unix/sysv/dl-osinfo.h: Include errno.h, hp-timing.h,
+ * sysdeps/unix/sysv/linux/dl-osinfo.h: Include errno.h, hp-timing.h,
endian.h.
(_dl_setup_stack_chk_guard): Even without
--enable-stackguard-randomization attempt to do some guard
else if (child_stack_chk_guards[i] == default_guard)
ndefaults++;
else if (*(char *) &child_stack_chk_guards[i] == 0)
- npartlyrandomized = 0;
+ npartlyrandomized++;
}
printf ("differences %d defaults %d partly randomized %d\n",
+2005-08-08 Jakub Jelinek <jakub@redhat.com>
+
+ * tst-stackguard1.c (do_test): Likewise.
+
2005-07-29 Jakub Jelinek <jakub@redhat.com>
* tst-stackguard1.c (do_test): Don't fail if the poor man's
else if (child_stack_chk_guards[i] == default_guard)
ndefaults++;
else if (*(char *) &child_stack_chk_guards[i] == 0)
- npartlyrandomized = 0;
+ npartlyrandomized++;
}
printf ("differences %d defaults %d partly randomized %d\n",
#if __BYTE_ORDER == __LITTLE_ENDIAN
stk <<= (__WORDSIZE - 29);
#else
- stk <<= (__WORDSIZE == 64 ? 24 : 5);
+ stk >>= 8;
#endif
ret ^= stk;
return ret;