]> git.proxmox.com Git - mirror_qemu.git/commit
Enforce stack protector usage
authorMiroslav Rezanina <mrezanin@redhat.com>
Wed, 2 Jul 2014 08:05:24 +0000 (10:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jul 2014 15:06:29 +0000 (17:06 +0200)
commit3b463a3fa8f7690ffa3ef273993dff349b3a73d3
tree236dbc78833c71db403091f84a525dd32ea13b34
parent30e5210a706ca6b52cbefa8b71e40ae614ffd6e5
Enforce stack protector usage

If --enable-stack-protector is used is used, configure script try to use
--fstack-protector-strong. In case it's not supported, --fstack-protector-all
is enabled. If both protectors are not supported, configure does not use
any protector at all without any notification.

This patch reports error when user requests stack protector to be used and
both protector modes are not supported. Behavior is not changed in case
user do not use any of --enable-stack-protector/--disable-stack-protector.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
[Fix non-POSIX operator in test. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure