about summary refs log tree commit diff
path: root/sysdeps/x86_64/stackguard-macros.h
blob: d7fedb373733cf91bab77ecfc71000d9c921d796 (plain) (blame)
1
2
3
4
5
6
#include <stdint.h>

#define STACK_CHK_GUARD \
  ({ uintptr_t x;						\
     asm ("mov %%fs:%c1, %0" : "=r" (x)				\
	  : "i" (offsetof (tcbhead_t, stack_guard))); x; })