Skip to content

Allow toolchain to indicate if they support SSP strong

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3toolchain: add hidden BR2_TOOLCHAIN_HAS_SSP_STRONG booleantoolchain/Config.in+4 -00 replies
2/3toolchain/toolchain-external/toolchain-external-custom: add option to indicate SSP_STRONG supporttoolchain/toolchain-external/toolchain-external-custom/Config.in.options+12 -01 reply
3/3Config.in: ensure BR2_SSP_STRONG can only be selected if supportedConfig.in+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] Allow toolchain to indicate if they support SSP strong

Hello,

In the autobuilders, we are seen build failures when the old CodeSourcery ARM toolchain is selected, and BR2_SSP_STRONG=y.

Indeed, this toolchain has gcc 4.8, and it doesn't support -fstack-protector-strong.

Unfortunately, we cannot simply make BR2_SSP_STRONG depend on gcc >= 4.9, because as explained in the BR2_SSP_STRONG help text, some custom toolchains with gcc < 4.9 have had the SSP strong support backported.

So, we introduce a BR2_TOOLCHAIN_HAS_SSP_STRONG hidden boolean. It is enabled as soon as SSP is available *and* gcc >= 4.9, so that most cases are covered without the need for each toolchain to select BR2_TOOLCHAIN_HAS_SSP_STRONG.

The only case require special attention is custom external toolchains, for which we add a visble Config.in option that allows the user to explicitly indicate if the toolchain supports SSP strong.

Thanks to this small patch series, we will be able to avoid the build failure in the autobuilders.

Thanks,

Thomas

Thomas Petazzoni (3):
toolchain: add hidden BR2_TOOLCHAIN_HAS_SSP_STRONG boolean toolchain/toolchain-external/toolchain-external-custom: add option to
indicate SSP_STRONG support
Config.in: ensure BR2_SSP_STRONG can only be selected if supported

 Config.in                                            |  1 +
 toolchain/Config.in                                  |  4 ++++
 .../toolchain-external-custom/Config.in.options      | 12 ++++++++++++
 3 files changed, 17 insertions(+)
Signature · 1 line
2.24.1