Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
9ed821d7e5d875a3395740a9cc2545671fa429b7
/
.
/
ap
/
libc
/
glibc
/
glibc-2.22
/
sysdeps
/
i386
/
stackguard-macros.h
blob: 039762927c7595ed968e339c33154a4a19f504f1 [
file
] [
log
] [
blame
]
#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
;
\
})