diff --git a/autospec/specfiles.py b/autospec/specfiles.py index b041207..2be1b0d 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -436,6 +436,7 @@ class Specfile(object): flags.extend(["-Os", "-ffunction-sections", "-fdata-sections", "-fno-semantic-interposition"]) if config.config_opts['security_sensitive']: flags.append("-fstack-protector-strong") + flags.append("-mzero-caller-saved-regs") if self.need_avx2_flags: flags.extend(["-O3", "-march=haswell"]) if self.need_avx512_flags: