From a9538892adfbb9f092e0bb14ff3a1703973968af Mon Sep 17 00:00:00 2001
From: Joseph Myers <joseph@codesourcery.com>
Date: Tue, 15 May 2012 23:34:30 +0000
Subject: Split up stackguard-macros.h into sysdeps directories.

---
 sysdeps/powerpc/powerpc32/stackguard-macros.h | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 sysdeps/powerpc/powerpc32/stackguard-macros.h

(limited to 'sysdeps/powerpc/powerpc32/stackguard-macros.h')

diff --git a/sysdeps/powerpc/powerpc32/stackguard-macros.h b/sysdeps/powerpc/powerpc32/stackguard-macros.h
new file mode 100644
index 0000000..839f6a4
--- /dev/null
+++ b/sysdeps/powerpc/powerpc32/stackguard-macros.h
@@ -0,0 +1,4 @@
+#include <stdint.h>
+
+#define STACK_CHK_GUARD \
+  ({ uintptr_t x; asm ("lwz %0,-28680(2)" : "=r" (x)); x; })
-- 
cgit v1.1