--- arch/mips64/Makefile.orig 2004-02-22 16:38:07.553362088 -0500 +++ arch/mips64/Makefile 2004-02-22 16:41:35.328775424 -0500 @@ -342,7 +342,7 @@ endif # ELF files from 32-bit files by conversion. # ifdef CONFIG_BOOT_ELF64 -GCCFLAGS += -Wa,-32 $(call check_gas,-Wa$(comma)-mgp64,) +GCCFLAGS += -Wa,-mabi=o64 $(call check_gas,-Wa$(comma)-mgp64,) LINKFLAGS += -T arch/mips64/ld.script.elf32 #AS += -64 #LD += -m elf64bmip