4 #include "pthread_impl.h"
7 uintptr_t __stack_chk_guard;
9 void __init_ssp(void *entropy)
12 pthread_t self = __pthread_self_init();
14 if (entropy) memcpy(&canary, entropy, sizeof canary);
15 else canary = (uintptr_t)&canary * 1103515245;
16 a_cas_l(&__stack_chk_guard, 0, canary);
17 self->canary = __stack_chk_guard;
20 void __stack_chk_fail(void)