Skip to content

Commit e58d95a

Browse files
fbuihuuralfbaechle
authored andcommitted
[MIPS] Don't abort the build process if '-msym32' isn't supported
-msym32 and previously the strategy to tell the compiler to generate 64-bit code but the assembler to put it into 32-bit ELF was initially a hack to get around the lack of proper 64-bit binutils support and later turned into a neat optimization with significant code size savings. But it's really just an optimization so there is nothing wrong with just dropping the option (and whatever else goes along with it, I forgot all the nasty details) on the floor if due to a vintage compiler it can't be suported. Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent e9f874b commit e58d95a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/mips/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,9 @@ ifdef CONFIG_64BIT
602602
endif
603603

604604
ifeq ($(KBUILD_SYM32), y)
605-
cflags-y += -msym32 -DKBUILD_64BIT_SYM32
605+
ifeq ($(call cc-option-yn,-msym32), y)
606+
cflags-y += -msym32 -DKBUILD_64BIT_SYM32
607+
endif
606608
endif
607609
endif
608610

0 commit comments

Comments
 (0)