From cb2884226755c7ab1a15861285f2b7ce5550c148 Mon Sep 17 00:00:00 2001 From: acevest Date: Tue, 26 Oct 2021 14:24:47 +0800 Subject: [PATCH] fix compile under x86_64 --- bin/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.44.0