]> Pileus Git - ~andy/linux/blobdiff - arch/sh/Makefile
Merge branch 'for-3.5-take-2' of git://linux-nfs.org/~bfields/linux
[~andy/linux] / arch / sh / Makefile
index 3fc0f413777cc152ee540fb1807ed282d065c384..46edf070da1c377574d8ce17e52a74416f9c896d 100644 (file)
@@ -124,7 +124,7 @@ endif
 
 export ld-bfd BITS
 
-head-y := arch/sh/kernel/init_task.o arch/sh/kernel/head_$(BITS).o
+head-y := arch/sh/kernel/head_$(BITS).o
 
 core-y                         += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/
 core-$(CONFIG_SH_FPU_EMU)      += arch/sh/math-emu/
@@ -199,6 +199,10 @@ ifeq ($(CONFIG_DWARF_UNWINDER),y)
   KBUILD_CFLAGS += -fasynchronous-unwind-tables
 endif
 
+ifeq ($(CONFIG_CC_STACKPROTECTOR),y)
+  KBUILD_CFLAGS += -fstack-protector
+endif
+
 libs-$(CONFIG_SUPERH32)                := arch/sh/lib/ $(libs-y)
 libs-$(CONFIG_SUPERH64)                := arch/sh/lib64/ $(libs-y)