kernel: use -ffunction-sections, -fdata-sections and --gc-sections on ARM to reduce...
[openwrt.git] / target / linux / generic / patches-3.8 / 305-mips_module_reloc.patch
index f0f5137..98d4c1d 100644 (file)
@@ -12,8 +12,8 @@
 +KBUILD_CFLAGS_MODULE          += -mno-long-calls
 +endif
  
+ ifndef CONFIG_FUNCTION_TRACER
  KBUILD_CFLAGS_KERNEL          += -ffunction-sections -fdata-sections
 --- a/arch/mips/include/asm/module.h
 +++ b/arch/mips/include/asm/module.h
 @@ -11,6 +11,11 @@ struct mod_arch_specific {