mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-28 23:34:53 +03:00
Replace manual casts with a direct `(__tcbhead_t __seg_gs *)0` dereferences for `stack_guard` and `pointer_guard`. This makes the macros more straightforward and removes the dependency on <stdint.h>. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
4 lines
135 B
C
4 lines
135 B
C
#define STACK_CHK_GUARD (((tcbhead_t __seg_gs *)0)->stack_guard)
|
|
|
|
#define POINTER_CHK_GUARD (((tcbhead_t __seg_gs *)0)->pointer_guard)
|