1 #include "libc.h"
2 #include "threads_impl.h"
3 #include <stdint.h>
4 #include <string.h>
5 
6 uintptr_t __stack_chk_guard;
7 
__stack_chk_fail(void)8 void __stack_chk_fail(void) {
9     __builtin_trap();
10 }
11 
12 __attribute__((__visibility__("hidden"))) void __stack_chk_fail_local(void);
13 
14 weak_alias(__stack_chk_fail, __stack_chk_fail_local);
15