Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e58d95ab authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle
Browse files

[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: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e9f874b6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -602,9 +602,11 @@ ifdef CONFIG_64BIT
  endif

  ifeq ($(KBUILD_SYM32), y)
    ifeq ($(call cc-option-yn,-msym32), y)
      cflags-y += -msym32 -DKBUILD_64BIT_SYM32
    endif
  endif
endif

AFLAGS		+= $(cflags-y)
CFLAGS		+= $(cflags-y) \