projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
first attempt at enabling stack protector support
[musl]
/
src
/
env
/
__stack_chk_fail.c
diff --git a/src/env/__stack_chk_fail.c
b/src/env/__stack_chk_fail.c
new file mode 100644
(file)
index 0000000..
bbba351
--- /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();
+}