mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00: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
|