mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
0b1f8e3564
Statically built binaries use __pointer_chk_guard_local, while dynamically built binaries use __pointer_chk_guard. Provide the right definition depending on the test case we are building.
13 lines
317 B
C
13 lines
317 B
C
#include <stdint.h>
|
|
|
|
extern uintptr_t __stack_chk_guard;
|
|
#define STACK_CHK_GUARD __stack_chk_guard
|
|
|
|
#ifdef PTRGUARD_LOCAL
|
|
extern uintptr_t __pointer_chk_guard_local;
|
|
# define POINTER_CHK_GUARD __pointer_chk_guard_local
|
|
#else
|
|
extern uintptr_t __pointer_chk_guard;
|
|
# define POINTER_CHK_GUARD __pointer_chk_guard
|
|
#endif
|