about summary refs log tree commit diff
path: root/sysdeps/nios2/stackguard-macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nios2/stackguard-macros.h')
-rw-r--r--sysdeps/nios2/stackguard-macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/nios2/stackguard-macros.h b/sysdeps/nios2/stackguard-macros.h
new file mode 100644
index 0000000000..55a5771b62
--- /dev/null
+++ b/sysdeps/nios2/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()