Merge tag 'landlock_v34' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux-2.6-microblaze.git] / arch / x86 / Makefile
index 465de4a..c77c5d8 100644 (file)
@@ -138,8 +138,8 @@ ifdef CONFIG_X86_X32
        x32_ld_ok := $(call try-run,\
                        /bin/echo -e '1: .quad 1b' | \
                        $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" - && \
-                       $(OBJCOPY) -O elf32-x86-64 "$$TMP" "$$TMPO" && \
-                       $(LD) -m elf32_x86_64 "$$TMPO" -o "$$TMP",y,n)
+                       $(OBJCOPY) -O elf32-x86-64 "$$TMP" "$$TMP.o" && \
+                       $(LD) -m elf32_x86_64 "$$TMP.o" -o "$$TMP",y,n)
         ifeq ($(x32_ld_ok),y)
                 CONFIG_X86_X32_ABI := y
                 KBUILD_AFLAGS += -DCONFIG_X86_X32_ABI