about summary refs log tree commit diff
path: root/src/env/__stack_chk_guard.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-30 03:00:24 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-30 03:00:24 -0400
commit63374ee233c44891db80e6600d7a5a8c82e4ccca (patch)
treea392979357e120c5d6628c44edaa1a0d189f2e53 /src/env/__stack_chk_guard.c
parent28c5d46d844684feba2ddfc9027ea308d8d3612c (diff)
downloadmusl-63374ee233c44891db80e6600d7a5a8c82e4ccca.tar.gz
musl-63374ee233c44891db80e6600d7a5a8c82e4ccca.tar.xz
musl-63374ee233c44891db80e6600d7a5a8c82e4ccca.zip
make stack protector work with gcc configured for non-tls canary
Diffstat (limited to 'src/env/__stack_chk_guard.c')
-rw-r--r--src/env/__stack_chk_guard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env/__stack_chk_guard.c b/src/env/__stack_chk_guard.c
new file mode 100644
index 00000000..f4c9e4f5
--- /dev/null
+++ b/src/env/__stack_chk_guard.c
@@ -0,0 +1,2 @@
+#include <inttypes.h>
+uintptr_t __stack_chk_guard = 0xdecafbad;