aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.7
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-28 19:17:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-28 19:17:19 +0000
commit41a039f46450ffae9483d6216422098669da2900 (patch)
treea5a1e6dd1828f1a8eb5adf672d49098dc71a88f7 /target/linux/generic/patches-3.7
parente7719bb4aa7830d5422281421a0f5f6e0d3675d8 (diff)
downloadupstream-41a039f46450ffae9483d6216422098669da2900.tar.gz
upstream-41a039f46450ffae9483d6216422098669da2900.tar.bz2
upstream-41a039f46450ffae9483d6216422098669da2900.zip
mips: use -mno-branch-likely for kernel and userspace, saves ~11k kernel size after lzma and ~12k squashfs size in the default configuration
SVN-Revision: 34909
Diffstat (limited to 'target/linux/generic/patches-3.7')
-rw-r--r--target/linux/generic/patches-3.7/302-mips_no_branch_likely.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.7/302-mips_no_branch_likely.patch b/target/linux/generic/patches-3.7/302-mips_no_branch_likely.patch
new file mode 100644
index 0000000000..1da9540050
--- /dev/null
+++ b/target/linux/generic/patches-3.7/302-mips_no_branch_likely.patch
@@ -0,0 +1,11 @@
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -87,7 +87,7 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
+ # machines may also. Since BFD is incredibly buggy with respect to
+ # crossformat linking we rely on the elf2ecoff tool for format conversion.
+ #
+-cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
++cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely
+ cflags-y += -msoft-float
+ LDFLAGS_vmlinux += -G 0 -static -n -nostdlib
+ KBUILD_AFLAGS_MODULE += -mlong-calls