This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/81383] -fstack-protector doesn't work well
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jul 2017 16:24:36 +0000
- Subject: [Bug libgcc/81383] -fstack-protector doesn't work well
- Auto-submitted: auto-generated
- References: <bug-81383-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81383
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #2)
> The problem is
>
> [hjl@gnu-6 tmp]$ gcc ssp-1.c -g -fstack-protector
> [hjl@gnu-6 tmp]$ ./a.out
> Segmentation fault
Yes and the segfault is after __stack_chk_fail is called. There is nothing GCC
could do better.