about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-06 01:26:00 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-06 03:29:44 +0200
commit8fcc772da8381476e914979fc887fdc54e62b15f (patch)
treedc3360e55ffc144e5dfe6c8d67cc9c1f40440b5f
parentecfa912f4217c0af277bb5d9cd26155010556baf (diff)
downloadglibc-8fcc772da8381476e914979fc887fdc54e62b15f.tar.gz
glibc-8fcc772da8381476e914979fc887fdc54e62b15f.tar.xz
glibc-8fcc772da8381476e914979fc887fdc54e62b15f.zip
hurd: Add pointer guard support
* sysdeps/mach/hurd/i386/tls.h (THREAD_SET_POINTER_GUARD,
THREAD_COPY_POINTER_GUARD): New macros.
-rw-r--r--sysdeps/mach/hurd/i386/tls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h
index 03a894bd35..97d0b1cbab 100644
--- a/sysdeps/mach/hurd/i386/tls.h
+++ b/sysdeps/mach/hurd/i386/tls.h
@@ -303,6 +303,13 @@ out:
   ((descr)->stack_guard							      \
    = THREAD_GETMEM (THREAD_SELF, stack_guard))
 
+/* Set the pointer guard field in the TCB head.  */
+#define THREAD_SET_POINTER_GUARD(value) \
+  THREAD_SETMEM (THREAD_SELF, pointer_guard, value)
+#define THREAD_COPY_POINTER_GUARD(descr) \
+  ((descr)->pointer_guard						      \
+   = THREAD_GETMEM (THREAD_SELF, pointer_guard))
+
 
 # include <mach/machine/thread_status.h>