diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 14:51:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 14:51:42 +0000 |
commit | 5191a29832336245da210430494a64670d6c7eaa (patch) | |
tree | 7794559fc16e8e025bc93e60f5b91071cb286642 /target/linux/generic/patches-3.8/305-mips_module_reloc.patch | |
parent | 6e10211b7138e626218bc8713141e3b5d999ad29 (diff) | |
download | master-187ad058-5191a29832336245da210430494a64670d6c7eaa.tar.gz master-187ad058-5191a29832336245da210430494a64670d6c7eaa.tar.bz2 master-187ad058-5191a29832336245da210430494a64670d6c7eaa.zip |
kernel: use -ffunction-sections, -fdata-sections and --gc-sections on ARM to reduce kernel image size, disable those flags when tracing on MIPS to fix compile errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35936 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.8/305-mips_module_reloc.patch')
-rw-r--r-- | target/linux/generic/patches-3.8/305-mips_module_reloc.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.8/305-mips_module_reloc.patch b/target/linux/generic/patches-3.8/305-mips_module_reloc.patch index f0f513741d..98d4c1d8a4 100644 --- a/target/linux/generic/patches-3.8/305-mips_module_reloc.patch +++ b/target/linux/generic/patches-3.8/305-mips_module_reloc.patch @@ -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 { |