mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From: Felix Fietkau <nbd@nbd.name>
 | |
| Subject: mips: use -mno-branch-likely for kernel and userspace
 | |
| 
 | |
| saves ~11k kernel size after lzma and ~12k squashfs size in the
 | |
| 
 | |
| lede-commit: 41a039f46450ffae9483d6216422098669da2900
 | |
| Signed-off-by: Felix Fietkau <nbd@nbd.name>
 | |
| ---
 | |
|  arch/mips/Makefile | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| --- a/arch/mips/Makefile
 | |
| +++ b/arch/mips/Makefile
 | |
| @@ -94,7 +94,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 -Wa,-msoft-float
 | |
|  LDFLAGS_vmlinux			+= -G 0 -static -n -nostdlib
 | |
|  KBUILD_AFLAGS_MODULE		+= -mlong-calls
 |