This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/81400] Stack smashing not caught by stack protector strong and allowing me to stack smash
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Aug 2017 08:39:28 +0000
- Subject: [Bug middle-end/81400] Stack smashing not caught by stack protector strong and allowing me to stack smash
- Auto-submitted: auto-generated
- References: <bug-81400-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81400
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't think we should be adding -lssp automatically.
-mstack-protector-guard=
is meant mainly for kernel or special purpose libraries, libssp.a we build in
gcc is just one of the many possible implementations of the _FORTIFY_SOURCE
etc. stuff, only if the C library doesn't provide that. The same stuff can
come from many other spots, C libraries, kernel, ...