diff options
Diffstat (limited to 'src/env/__stack_chk_fail.c')
-rw-r--r-- | src/env/__stack_chk_fail.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/env/__stack_chk_fail.c b/src/env/__stack_chk_fail.c new file mode 100644 index 00000000..bbba3511 --- /dev/null +++ b/src/env/__stack_chk_fail.c @@ -0,0 +1,14 @@ +#include "pthread_impl.h" +#include "atomic.h" + +void __init_ssp(void) +{ +#ifndef __PIC__ + __pthread_self_init(); +#endif +} + +void __stack_chk_fail(void) +{ + a_crash(); +} |