How does the gcc option -fstack-check exactly work?

Posted by stcatz on Stack Overflow See other posts from Stack Overflow or by stcatz
Published on 2010-03-03T09:05:48Z Indexed on 2010/03/23 3:21 UTC
Read the original article Hit count: 300

Filed under:
|
|

My program crashed when I added the option -fstack-check and -fstack-protector. __stack_chk_fail is called in the back trace.

So how could I know where the problem is ? What does -fstack-check really check ? The information about gcc seems too huge to find out the answer.

© Stack Overflow or respective owner

Related posts about gcc

Related posts about stack