From: acevest Date: Tue, 26 Oct 2021 06:24:47 +0000 (+0800) Subject: fix compile under x86_64 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=28a6c3e7b901de373148b803a914de8d14fb9c0b;p=kernel.git fix compile under x86_64 --- diff --git a/bin/Makefile b/bin/Makefile index b430492..4b76644 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -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