diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index ad36c946ff96b355555f71319d9c8a3923b586bc..0b8d82d55c66bbc4cbd97839cf4057f9f00948aa 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -14,7 +14,7 @@
 
 KBUILD_DEFCONFIG := ip22_defconfig
 
-cflags-y :=
+cflags-y := -ffunction-sections
 
 #
 # Select the object file format to substitute into the linker script.