glibc/sysdeps/i386/stackguard-macros.h

5 lines
110 B
C

#include <stdint.h>
#define STACK_CHK_GUARD \
({ uintptr_t x; asm ("movl %%gs:0x14, %0" : "=r" (x)); x; })