Don't abort the build process if '-msym32' isn't supported
PATCH 1/1 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.
---
Ralf,
This patch is based on your linux-queue repository. Thanks for the commit message ;)
Franck
arch/mips/Makefile | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/mips/Makefile +3 -1
@@ -602,7 +602,9 @@ ifdef CONFIG_64BIT endif ifeq ($(KBUILD_SYM32), y) - cflags-y += -msym32 -DKBUILD_64BIT_SYM32 + ifeq ($(call cc-option-yn,-msym32), y) + cflags-y += -msym32 -DKBUILD_64BIT_SYM32 + endif endif endif
Signature · 1 line
1.5.3.2
Ralf Baechle
AppliedQuoted 9 lines · Franck Bui-Huu
-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.
Quoted 7 lines
Signed-off-by Franck Bui-Huu <[email protected]>---
Ralf,
This patch is based on your linux-queue repository. Thanks for the commit message ;)
Glad I'm useful for something ;-)
Queued for 2.6.24, thanks!
Ralf