[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.0] configure: add option to disable -fstac

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH for-2.0] configure: add option to disable -fstack-protector flags
Date: Fri, 28 Mar 2014 18:51:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Il 28/03/2014 18:41, Laurent Desnogues ha scritto:
> +  gcc_flags="-fstack-protector-strong -fstack-protector-all"
> +  for flag in $gcc_flags; do
> +    if compile_prog "-Werror $flag" "" ; then
> +      QEMU_CFLAGS="$QEMU_CFLAGS $flag"
> +      break
> +    fi
> +  done
>  fi
My understanding is that -fstack-protector, -fstack-protector-strong,
and -fstack-protector-all are strictly ordered in terms of the number
of functions that are checked, so you have changed the default
behavior to check less functions for compilers that support
-fstack-protector-strong.  Is that what you had in mind?

Yes. -fstack-protector-all adds protection in places where it doesn't really matter, and that's why it has such a high cost.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]