In Fedora22, GCC not enabled the -fstack-protector by default, why?

2015-06-29 Thread 乱雪
Such as: // x.c #include stdio.h int main(void) { char x[] = abc; printf(%s\n, x); return 0; } and using GCC compile it: ➜ gcc x.c -v .. /usr/libexec/gcc/x86_64-redhat-linux/5.1.1/cc1 -quiet -v x.c -quiet -dumpbase x.c -mtune=generic -march=x86-64 -auxbase x -version -o

Re: In Fedora22, GCC not enabled the -fstack-protector by default, why?

2015-06-29 Thread Josh Stone
On 06/29/2015 07:47 AM, 乱雪 wrote: Such as: // x.c #include stdio.h int main(void) { char x[] = abc; printf(%s\n, x); return 0; } and using GCC compile it: ➜ gcc x.c -v .. /usr/libexec/gcc/x86_64-redhat-linux/5.1.1/cc1 -quiet -v x.c -quiet -dumpbase x.c