https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121911
--- Comment #10 from Drea Pinski <pinskia at gcc dot gnu.org> --- (In reply to Sergei Trofimovich from comment #8) > (In reply to Drea Pinski from comment #6) > > > Change systemd since glibc has it defined as uintptr_t: > > csu/libc-start.c:uintptr_t __stack_chk_guard attribute_relro; > > elf/rtld.c:uintptr_t __stack_chk_guard attribute_relro; > > Sounds good! Proposed as https://github.com/systemd/systemd/pull/41956 edk2 issue filed as https://github.com/tianocore/edk2/issues/12547 (I don't have a way to test a change there). The Linux kernel uses `unsigned long` which for most targets should be ok I think. GNU hurd needs to be fixed though: gnuhurd/gnumach/kern/debug.c:unsigned char __stack_chk_guard [ sizeof (vm_offset_t) ] = musl, llvm libc and newlib all use uintptr_t already. I have not checked any of the *BSD libc though.
