From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3] toolchain: granular choice for stack protector
Date: Sun, 27 Dec 2015 15:34:51 +0100 [thread overview]
Message-ID: <20151227153451.7b3ede57@free-electrons.com> (raw)
In-Reply-To: <1451214451-26133-1-git-send-email-yann.morin.1998@free.fr>
Dear Yann E. MORIN,
On Sun, 27 Dec 2015 12:07:31 +0100, Yann E. MORIN wrote:
> From: Steven Noonan <steven@uplinklabs.net>
>
> Currently, we only support two levels of stach-smashing protection:
> - entirely disabled,
> - protect _all_ functions with -fstack-protector-all.
>
> -fstack-protector-all tends to be far too aggressive and impacts
> performance too much to be worth on a real product.
>
> Add a choice that allows us to select between different levels of
> stack-smashing protection:
> - none
> - basic (NEW)
> - strong (NEW)
> - all
>
> The differences are documented in the GCC online documentation:
> https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Optimize-Options.html
>
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
> [yann.morin.1998 at free.fr:
> - rebase
> - add legacy handling
> - SSP-strong depends on gcc >= 4.9
> - slightly simple ifeq-block in package/Makefile.in
> - keep the comment in the choice; add a comment shen strong is not
> available
> - drop the defaults (only keep the legacy)
> - update commit log
> ]
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>
> ---
> Changes v2 -> v3:
> - drop the new defaults, only keep legacy (Thomas)
Applied with the following changes:
[Thomas:
- only show the choice if the toolchain has SSP support
- add details for the BR2_SSP_ALL option that it has a significant
performance impact.]
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2015-12-27 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-27 11:07 [Buildroot] [PATCHv3] toolchain: granular choice for stack protector Yann E. MORIN
2015-12-27 11:39 ` Steven Noonan
2015-12-27 11:44 ` Yann E. MORIN
2015-12-27 11:45 ` Thomas Petazzoni
2015-12-27 14:12 ` Steven Noonan
2015-12-27 14:34 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151227153451.7b3ede57@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox