From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sun, 25 Nov 2018 21:49:12 +0100 Subject: [Buildroot] [PATCH] Config.in: security hardening: disable FORTIFY_SOURCE for gcc < 6 In-Reply-To: <20181105200750.6039-1-romain.naour@gmail.com> (Romain Naour's message of "Mon, 5 Nov 2018 21:07:50 +0100") References: <20181105200750.6039-1-romain.naour@gmail.com> Message-ID: <87r2f851dj.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Romain" == Romain Naour writes: > As reported in the bug report [1], gcc < 6 doesn't build when > FORTIFY_SOURCE is set to 1 or 2. The issue is related to the > upstream bug report [2] but the patch fixing the issue for gcc 6 > has not been backported to earlier gcc versions. > Add a dependency on gcc at least version 6 to BR2_FORTIFY_SOURCE_1 > and BR2_FORTIFY_SOURCE_2. > [1] https://bugs.busybox.net/show_bug.cgi?id=11476 > [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164 > [3] https://github.com/gcc-mirror/gcc/commit/55f12fce4ccf77513644a247f9c401a5b1fa2402 > Signed-off-by: Romain Naour > Cc: Matthew Weber > Cc: Peter Korsgaard > --- > To be backported up to Buildroot 2018.02.x. Committed to 2018.02.x and 2018.08.x, thanks. -- Bye, Peter Korsgaard