1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-28 23:34:53 +03:00
Files
glibc/sysdeps/i386/stackguard-macros.h
Uros Bizjak e47728a77c x86: Simplify stack and pointer guard macros
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>
2025-10-08 09:35:15 +02:00

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)