Blame sysdeps/powerpc/powerpc32/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 ("lwz %0,-28680(2)" : "=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 ("lwz %0,%1(2)" \
|
|
Packit Service |
82fcde |
: "=r" (x) \
|
|
Packit Service |
82fcde |
: "i" (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t)) \
|
|
Packit Service |
82fcde |
); \
|
|
Packit Service |
82fcde |
x; \
|
|
Packit Service |
82fcde |
})
|