repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
i386: Use "movl main@GOT(%ebx), %eax" in start.S
[glibc.git]
/
sysdeps
/
i386
/
stackguard-macros.h
blob
039762927c7595ed968e339c33154a4a19f504f1
1
#include <stdint.h>
2
3
#define STACK_CHK_GUARD \
4
({ uintptr_t x; asm (
"movl %%gs:0x14, %0"
:
"=r"
(x)); x; })
5
6
#define POINTER_CHK_GUARD \
7
({ \
8
uintptr_t x; \
9
asm (
"movl %%gs:%c1, %0"
:
"=r"
(x) \
10
:
"i"
(offsetof (tcbhead_t, pointer_guard))); \
11
x; \
12
})