]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/sparc/sparc64/stackguard-macros.h
BZ #15754: CVE-2013-4788
[thirdparty/glibc.git] / sysdeps / sparc / sparc64 / stackguard-macros.h
CommitLineData
a9538892
JM
1#include <stdint.h>
2
3#define STACK_CHK_GUARD \
4 ({ uintptr_t x; asm ("ldx [%%g7+0x28], %0" : "=r" (x)); x; })
c61b4d41
CD
5
6#define POINTER_CHK_GUARD \
7 ({ uintptr_t x; asm ("ldx [%%g7+0x30], %0" : "=r" (x)); x; })