I have written an application in C, and I'm trying to understand what is the purpose of the -fno-stack-protector
command when compiling. For my specific application, it makes no difference if I use this command or not in terms of protecting against buffer overflow.
I've read online that the -fstack-protector
and -fno-stack-protector
commands enable and disable respectively the stack-smashing protector, but if I'm compiling the application myself, how can the protector be enabled beforehand? Does the usage of the command maybe depend on what system the application is running on?