在 2026-8-26 14:50, TheShermanTanker 写道:
From: Julian Waters <[email protected]>

At some point gcc started enforcing that __stack_chk_guard must have certain
properties, but unfortunately a side effect seems to be that the compiler
now hits an assert in its Link Time Optimizer, specifically the serializer
when __stack_chk_guard is declared in the code without being explicitly
initialized. We can just initialize it to 0 to make the assert go away.

mingw-w64-crt/ssp/ChangeLog:

        * stack_chk_guard.c (__stack_chk_guard): Initialize to 0.

Signed-off-by: TheShermanTanker <[email protected]>
---
  mingw-w64-crt/ssp/stack_chk_guard.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

I think you mean https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126773, which had better be included in the commit message.

I have added it and pushed this patch now.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to