Add SH implementation of stackguard-macros.h.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 27 Sep 2013 01:59:02 +0000 (10:59 +0900)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 27 Sep 2013 01:59:02 +0000 (10:59 +0900)
sysdeps/sh/stackguard-macros.h [new file with mode: 0644]

diff --git a/sysdeps/sh/stackguard-macros.h b/sysdeps/sh/stackguard-macros.h
new file mode 100644 (file)
index 0000000..55a5771
--- /dev/null
@@ -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()