]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
grub2: force -fno-stack-protector in CPPFLAGS
authorTarek El-Sherbiny <tarek_el-sherbiny@waters.com>
Thu, 19 Apr 2018 08:36:59 +0000 (09:36 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 30 Apr 2018 21:00:58 +0000 (23:00 +0200)
commit74f309da6f199136d0e5628356e3ff7ce1c80dfa
treea98f40092eb22204d6a82e14952b9af34b620bd1
parent436ac38c7d53e3b907edd0d3fd8cea2d6104ef59
grub2: force -fno-stack-protector in CPPFLAGS

In commit 2a27294e9ade6130a12ced9a1f152c51431a870e ("grub2: force
-fno-stack-protector in CFLAGS"), a fix was made to the grub2 package
to make it build properly even when SSP support is enabled.

However, commit 20a4583ebf7fe97ea22a1ea11621dd44a8114ca5 ("security
hardening: add RELFO, FORTIFY options") reworked how SSP options are
passed, and they are now passed in CPPFLAGS instead of CFLAGS, making
the fix introduced by 2a27294e9ade6130a12ced9a1f152c51431a870e no
longer operating.

This commit will force no-stack-protector in CPPFLAGS instead of
CFLAGS.

Fixes bug #10961.

Signed-off-by: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 523b27afa941bc0a78f7b2eae8e97329c112782d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/grub2/grub2.mk