]> Zhao Yanbai Git Server - kernel.git/commitdiff
fix compile under x86_64
authoracevest <zhaoyanbai@126.com>
Tue, 26 Oct 2021 06:24:47 +0000 (14:24 +0800)
committeracevest <zhaoyanbai@126.com>
Tue, 26 Oct 2021 06:24:47 +0000 (14:24 +0800)
bin/Makefile

index b4304929e114455f5257ca3b9bea810a54cecc27..4b76644056318319f5971e37de90edd8aeabf2b4 100644 (file)
@@ -10,10 +10,10 @@ all:$(BINS)
 
 shell: shell.o
        gcc $(CFLAGS) shell.c -o shell.o
-       ld ${LIBC_OBJS} shell.o -o shell
+       ld  -m elf_i386 ${LIBC_OBJS} shell.o -o shell
 hello: hello.o
        gcc $(CFLAGS) hello.c -o hello.o
-       ld $(LIBC_OBJS) hello.o -o hello
+       ld  -m elf_i386 $(LIBC_OBJS) hello.o -o hello
 
 
 .PHONY:clean