[Top] [All Lists]

[PATCH] Don't abort the build process if '-msym32' isn't supported

To: Ralf Baechle <>
Subject: [PATCH] Don't abort the build process if '-msym32' isn't supported
From: Franck Bui-Huu <>
Date: Thu, 27 Sep 2007 16:26:40 +0200
Cc: Atsushi Nemoto <>, "Maciej W. Rozycki" <>, linux-mips <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:x-enigmail-version:content-type:content-transfer-encoding; bh=K0SogIDqYho/zPiqy2cF7Gfi4lSwI7giI9mjaaVJxCY=; b=AYQyv0p4jkeSftxIi8oVgD6SpH4TudWNmL4JSDhzUBvLakDvWA7IFtR50ig6W5zNbz7ot3RQ0rfWMZm4iayw+Vw19ZPfrtFMjp+vvAbyON2k+mtqiyLYf7C9FML0wJ5K+GnMCqVnp8CiG20a/Ch4+8tnM8oso74mdAWdBis5A8g=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:x-enigmail-version:content-type:content-transfer-encoding; b=jkcd4OMT8e44Z6dwP5tsqXTyL+hph3Mtwo9H6rYaw4l0tzAdx+pikEvNYsrZ+LCW0eQbC6ZyopjBl/Gzv+UjI3+3vi31x4lP8H5GoEj50hAhahl4CHvtXDtlpLnngsys55IAe0QlPY7d/RDez0KpZi4INqXr1z+Uo9k2izkB9To=
Original-recipient: rfc822;
User-agent: Thunderbird (X11/20070719)
-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 <>


 This patch is based on your linux-queue repository.
 Thanks for the commit message ;)


 arch/mips/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index b0fac2d..ebd5d02 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -602,7 +602,9 @@ ifdef CONFIG_64BIT
   ifeq ($(KBUILD_SYM32), y)
-    cflags-y += -msym32 -DKBUILD_64BIT_SYM32
+    ifeq ($(call cc-option-yn,-msym32), y)
+      cflags-y += -msym32 -DKBUILD_64BIT_SYM32
+    endif

<Prev in Thread] Current Thread [Next in Thread>