kernel: when using --gc-sections, add --sort-section=name to get a more stable sortin...
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 302-mips_no_branch_likely.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -87,7 +87,7 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
4 # machines may also. Since BFD is incredibly buggy with respect to
5 # crossformat linking we rely on the elf2ecoff tool for format conversion.
6 #
7 -cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
8 +cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely
9 cflags-y += -msoft-float
10 LDFLAGS_vmlinux += -G 0 -static -n -nostdlib --gc-sections --sort-section=name
11 KBUILD_AFLAGS_MODULE += -mlong-calls