[Bug target/121911] x86-64: -mstack-protector-guard=global should respect symbol visibility
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 5 21:26:15 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121911
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:d54aaab350d4224c458b50af473b5ea6bb9e14a4
commit r17-342-gd54aaab350d4224c458b50af473b5ea6bb9e14a4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed May 6 04:56:32 2026 +0800
libssp: Change __stack_chk_guard to uintptr_t
Since the only test of __stack_chk_guard in GCC is declared as an integer:
#ifdef __LP64__
const unsigned long int __stack_chk_guard = 0x2d853605a4d9a09cUL;
#else
const unsigned long int __stack_chk_guard = 0xdd2cc927UL;
#endif
and it is natural to assign an integer to __stack_chk_guard,
commit c05b5e5d8cb660ed43159d66fd669c20746d6bea
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Sep 12 18:52:39 2025 -0700
c/c++: Declare stack protection guard as a global symbol
declared __stack_chk_guard as uintptr_t if it is an internal global
symbol. Change __stack_chk_guard in libssp to match the internal
symbol type.
PR c/121911
* ssp.c: Include <stdint.h>. Change __stack_chk_guard to
uintptr_t.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
More information about the Gcc-bugs
mailing list