[Buildroot] [PATCH] Config.in: security hardening: disable FORTIFY_SOURCE for gcc < 6
peter at korsgaard.com
Tue Nov 6 09:06:51 UTC 2018
>>>>> "Romain" == Romain Naour <romain.naour at gmail.com> writes:
> As reported in the bug report , gcc < 6 doesn't build when
> FORTIFY_SOURCE is set to 1 or 2. The issue is related to the
> upstream bug report  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.
>  https://bugs.busybox.net/show_bug.cgi?id=11476
>  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164
>  https://github.com/gcc-mirror/gcc/commit/55f12fce4ccf77513644a247f9c401a5b1fa2402
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> Cc: Matthew Weber <matthew.weber at rockwellcollins.com>
> Cc: Peter Korsgaard <peter at korsgaard.com>
> To be backported up to Buildroot 2018.02.x.
Committed after adding the internal toolchain dependency as pointed out
by Matthew, thanks.
Bye, Peter Korsgaard
More information about the buildroot