]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Do not use -msym32 option for modules.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 10 Oct 2006 13:13:55 +0000 (22:13 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 2 Nov 2006 17:23:34 +0000 (17:23 +0000)
On 64-bit kernel, modules are loaded into XKSEG for now.  While XKSEG
address is not a sign-extended 32-bit address, we can not use -msym32
option.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Makefile

index 641aa30b36385a6860f304709d82b5ab7871345a..d580d46f967b29c4c033856e2da5ff49a8fe0fd9 100644 (file)
@@ -63,7 +63,9 @@ cflags-y              += -mabi=64
 ifdef CONFIG_BUILD_ELF64
 cflags-y               += $(call cc-option,-mno-explicit-relocs)
 else
-cflags-y               += $(call cc-option,-msym32)
+# -msym32 can not be used for modules since they are loaded into XKSEG
+CFLAGS_MODULE          += $(call cc-option,-mno-explicit-relocs)
+CFLAGS_KERNEL          += $(call cc-option,-msym32)
 endif
 endif