x86/purgatory: Disable the stackleak GCC plugin for the purgatory
[linux-2.6-block.git] / arch / x86 / purgatory / Makefile
index 10fb42da0007e9d3c914143ec4e427dd1eec42f5..b81b5172cf994761f0aea779e686ce742868c685 100644 (file)
@@ -23,6 +23,7 @@ KCOV_INSTRUMENT := n
 
 PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel
 PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss
+PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN)
 
 # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That
 # in turn leaves some undefined symbols like __fentry__ in purgatory and not