]> Zhao Yanbai Git Server - kernel.git/commitdiff
authorzhaoyanbai <zhaoyanbai@126.com>
Tue, 26 Oct 2021 06:24:47 +0000 (14:24 +0800)
committerzhaoyanbai <zhaoyanbai@126.com>
Wed, 3 Nov 2021 02:45:43 +0000 (10:45 +0800)
bin/Makefile

index b430492..4b76644 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