ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../sysdeps/i386/stackguard-macros.h

13 lines
293 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
#include <stdint.h>
#define STACK_CHK_GUARD \
({ uintptr_t x; asm ("movl %%gs:0x14, %0" : "=r" (x)); x; })
#define POINTER_CHK_GUARD \
({ \
uintptr_t x; \
asm ("movl %%gs:%c1, %0" : "=r" (x) \
: "i" (offsetof (tcbhead_t, pointer_guard))); \
x; \
})