Makefile: move stack-protector compiler breakage test earlier
authorKees Cook <[email protected]>
Tue, 6 Feb 2018 23:37:38 +0000 (15:37 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:44 +0000 (18:32 -0800)
commit2b8383927525d6281cbad1cc70a83d2319eeae47
tree58b14630915e20fe2f5794d9fe67837027a58436
parent4bf8ba811ac1102d7de6f73af3b9f323463e16c0
Makefile: move stack-protector compiler breakage test earlier

In order to make stack-protector failures warn instead of unconditionally
breaking the build, this moves the compiler output sanity-check earlier,
and sets a flag for later testing.  Future patches can choose to warn or
fail, depending on the flag value.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Tested-by: Laura Abbott <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Josh Triplett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Makefile