Re: [patch core/stackprotector] stackprotector: Fix build when compilerlacks support

From: Arjan van de Ven
Date: Tue Dec 31 2013 - 09:39:23 EST


On 12/30/2013 1:37 PM, David Rientjes wrote:
8779657d29c0 ("stackprotector: Introduce CONFIG_CC_STACKPROTECTOR_STRONG")
causes the build to break when the compiler doesn't support
-fstack-protector-strong:

cc1: error: unrecognized command line option â-fstack-protector-strongâ
cc1: error: unrecognized command line option â-fstack-protector-strongâ

with at least gcc 4.6.3.

Instead of breaking the build, just warn of the failure and disable the
feature.

ideally it also falls back to the less strict one, rather than not using stack protector at all...


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/