Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77e07cb)
raw | patch | inline | side by side (parent: 77e07cb)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Tue, 26 Oct 2021 06:24:47 +0000 (14:24 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Wed, 3 Nov 2021 02:45:43 +0000 (10:45 +0800) |
| bin/Makefile | patch | blob | history |
diff --git a/bin/Makefile b/bin/Makefile
--- a/bin/Makefile
+++ b/bin/Makefile
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