diff options
Diffstat (limited to 'sysdeps/ia64/stackguard-macros.h')
-rw-r--r-- | sysdeps/ia64/stackguard-macros.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/ia64/stackguard-macros.h b/sysdeps/ia64/stackguard-macros.h new file mode 100644 index 0000000000..390729327a --- /dev/null +++ b/sysdeps/ia64/stackguard-macros.h @@ -0,0 +1,7 @@ +#include <stdint.h> + +#define STACK_CHK_GUARD \ + ({ uintptr_t x; asm ("adds %0 = -8, r13;; ld8 %0 = [%0]" : "=r" (x)); x; }) + +#define POINTER_CHK_GUARD \ + ({ uintptr_t x; asm ("adds %0 = -16, r13;; ld8 %0 = [%0]" : "=r" (x)); x; }) |