[MIPS] Enable -ffunction-sections sections.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:33 +0000 (18:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:33 +0000 (18:44 +0100)
-ffunction-sections serves as a workaround for the problems caused by the
limited branch range in some inline assembler fragments for very large
compilation units.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Makefile

index ad36c94..0b8d82d 100644 (file)
@@ -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.