lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <stdint.h> |
2 | |||||
3 | #define STACK_CHK_GUARD \ | ||||
4 | ({ uintptr_t x; asm ("adds %0 = -8, r13;; ld8 %0 = [%0]" : "=r" (x)); x; }) | ||||
5 | |||||
6 | #define POINTER_CHK_GUARD \ | ||||
7 | ({ uintptr_t x; asm ("adds %0 = -16, r13;; ld8 %0 = [%0]" : "=r" (x)); x; }) |