| |
@@ -155,7 +155,7 @@
|
| |
%_annotated_build 1
|
| |
%_annotated_cflags %{?_annotated_build:%{_annobin_cflags}}
|
| |
|
| |
- %__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags}
|
| |
+ %__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -fstack-clash-protection -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags}
|
| |
|
| |
%__global_cflags %{optflags}
|
| |
%__global_cxxflags %{optflags}
|
| |
Enable -fstack-clash-protection globally, now that GCC has support for it.
As far as hardening goes, -fstack-clash-protection is extremely lightweight, so we can make it part of the default flags.