about summary refs log tree commit diff
path: root/sysdeps/x86_64/stackguard-macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/stackguard-macros.h')
-rw-r--r--sysdeps/x86_64/stackguard-macros.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/x86_64/stackguard-macros.h b/sysdeps/x86_64/stackguard-macros.h
index d7fedb3737..1948800cd0 100644
--- a/sysdeps/x86_64/stackguard-macros.h
+++ b/sysdeps/x86_64/stackguard-macros.h
@@ -4,3 +4,8 @@
   ({ uintptr_t x;						\
      asm ("mov %%fs:%c1, %0" : "=r" (x)				\
 	  : "i" (offsetof (tcbhead_t, stack_guard))); x; })
+
+#define POINTER_CHK_GUARD \
+  ({ uintptr_t x;						\
+     asm ("mov %%fs:%c1, %0" : "=r" (x)				\
+	  : "i" (offsetof (tcbhead_t, pointer_guard))); x; })