summaryrefslogtreecommitdiff
path: root/libc/sysdeps/x86_64/stackguard-macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/x86_64/stackguard-macros.h')
-rw-r--r--libc/sysdeps/x86_64/stackguard-macros.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/x86_64/stackguard-macros.h b/libc/sysdeps/x86_64/stackguard-macros.h
index d7fedb373..1948800cd 100644
--- a/libc/sysdeps/x86_64/stackguard-macros.h
+++ b/libc/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; })