Blame sysdeps/i386/stackguard-macros.h
|
Packit Service |
82fcde |
#include <stdint.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define STACK_CHK_GUARD \
|
|
Packit Service |
82fcde |
({ uintptr_t x; asm ("movl %%gs:0x14, %0" : "=r" (x)); x; })
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define POINTER_CHK_GUARD \
|
|
Packit Service |
82fcde |
({ \
|
|
Packit Service |
82fcde |
uintptr_t x; \
|
|
Packit Service |
82fcde |
asm ("movl %%gs:%c1, %0" : "=r" (x) \
|
|
Packit Service |
82fcde |
: "i" (offsetof (tcbhead_t, pointer_guard))); \
|
|
Packit Service |
82fcde |
x; \
|
|
Packit Service |
82fcde |
})
|