From 52933c58c9670866578e4ce862b63aaa504a04f3 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 14 Oct 2018 16:35:02 +0200 Subject: [PATCH] Enable hardening flags for stage-1 gcc Signed-off-by: David Oberhollenzer --- pkg/tc-gcc1/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/tc-gcc1/build b/pkg/tc-gcc1/build index d33f2a3..ef947f1 100755 --- a/pkg/tc-gcc1/build +++ b/pkg/tc-gcc1/build @@ -41,9 +41,10 @@ build() { --disable-nls --disable-shared --without-headers \ --disable-multilib --disable-decimal-float \ --disable-libgomp --disable-libmudflap \ - --disable-libssp --disable-libatomic \ + --enable-libssp --disable-libatomic \ --disable-libquadmath --disable-threads \ --enable-languages=c --with-newlib \ + --enable-default-pie --enable-default-ssp \ --with-arch="$GCC_CPU" $GCC_EXTRACFG make -j $NUMJOBS all-gcc all-target-libgcc