]> 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)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Apr 2018 21:26:06 +0000 (23:26 +0200)
commit523b27afa941bc0a78f7b2eae8e97329c112782d
treef99fff09fa73087ec960117d0cd3f60ed5b5f6b2
parent41a7c72c2181f01275fe97da222824f021cf5e5f
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>
boot/grub2/grub2.mk