summaryrefslogtreecommitdiff
path: root/sysdeps/sh/stackguard-macros.h
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2013-09-27 10:59:02 +0900
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2013-09-27 10:59:02 +0900
commit80a83dd70ea11bec2c606f36c87e768e7376847f (patch)
tree020dcd9ab0328fa85db684aa58cc725af2c3c7b8 /sysdeps/sh/stackguard-macros.h
parentdc1a95c730699bdccbafa85f189b814107f409b5 (diff)
Add SH implementation of stackguard-macros.h.
Diffstat (limited to 'sysdeps/sh/stackguard-macros.h')
-rw-r--r--sysdeps/sh/stackguard-macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/sh/stackguard-macros.h b/sysdeps/sh/stackguard-macros.h
new file mode 100644
index 0000000000..55a5771b62
--- /dev/null
+++ b/sysdeps/sh/stackguard-macros.h
@@ -0,0 +1,6 @@
+#include <stdint.h>
+
+extern uintptr_t __stack_chk_guard;
+#define STACK_CHK_GUARD __stack_chk_guard
+
+#define POINTER_CHK_GUARD THREAD_GET_POINTER_GUARD()