This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: does -fstack-protector work for gcc 4.1 on Darwin 8?
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: gcc at gcc dot gnu dot org
- Date: Thu, 4 Aug 2005 01:15:19 -0400 (EDT)
- Subject: Re: does -fstack-protector work for gcc 4.1 on Darwin 8?
Richard,
Is there some sample code that one can use to test the
functionality of the code generated by -fstack-protector?
Also, if one has a buggy program that is corrupting the stack,
what is the expected behavior of this program when compiled
with the stack protection code? Should it always abort at
runtime with a userful error message or will it manage to
suppress the stack corruption and keep on running. I was hoping
to use the stack protection code as way to flag the position of
offending code that was corrupting the stack rather than mask
the corruption itself. Thanks in advance for any clarifications.
Jack