3 #include "pthread_impl.h"
6 uintptr_t __stack_chk_guard;
8 void __init_ssp(void *entropy)
10 pthread_t self = __pthread_self_init();
12 if (entropy) memcpy(&canary, entropy, sizeof canary);
13 else canary = (uintptr_t)&canary * 1103515245;
14 a_cas_l(&__stack_chk_guard, 0, canary);
15 self->canary = __stack_chk_guard;
18 void __stack_chk_fail(void)