summaryrefslogtreecommitdiffstats
path: root/toolchain/toolchain-wrapper.c
diff options
context:
space:
mode:
authorMatt Weber <matthew.weber@rockwellcollins.com>2018-09-17 16:21:50 -0500
committerPeter Korsgaard <peter@korsgaard.com>2018-10-20 12:51:21 +0200
commitf10822d151085bcbfecd0ecf2542ac5f5623fd9d (patch)
tree05c1285719dd04dcc2ecdf7ece9f8f49d79fa271 /toolchain/toolchain-wrapper.c
parent7484c1c3b8065d6f2f5a67607e9917ecfea022eb (diff)
downloadbuildroot-f10822d151085bcbfecd0ecf2542ac5f5623fd9d.tar.gz
buildroot-f10822d151085bcbfecd0ecf2542ac5f5623fd9d.zip
toolchain/toolchain-wrapper: add BR2_SSP_* support
Migrate the stack protection flag management into the wrapper. Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'toolchain/toolchain-wrapper.c')
-rw-r--r--toolchain/toolchain-wrapper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/toolchain/toolchain-wrapper.c b/toolchain/toolchain-wrapper.c
index c73a0cc079..e9c5cd9d32 100644
--- a/toolchain/toolchain-wrapper.c
+++ b/toolchain/toolchain-wrapper.c
@@ -98,6 +98,15 @@ static char *predef_args[] = {
#if defined(BR_MIPS_TARGET_BIG_ENDIAN) || defined(BR_ARC_TARGET_BIG_ENDIAN)
"-EB",
#endif
+#ifdef BR_SSP_REGULAR
+ "-fstack-protector",
+#endif
+#ifdef BR_SSP_STRONG
+ "-fstack-protector-strong",
+#endif
+#ifdef BR_SSP_ALL
+ "-fstack-protector-all",
+#endif
#ifdef BR_ADDITIONAL_CFLAGS
BR_ADDITIONAL_CFLAGS
#endif
OpenPOWER on IntegriCloud