From 6064511ceb9da811e53bfba765a70ce894806dab Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 28 Jun 2018 01:23:31 +0200 Subject: [PATCH] fix image generation --- extra/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/Makefile b/extra/Makefile index f858aa6..c9ad5eb 100644 --- a/extra/Makefile +++ b/extra/Makefile @@ -1,4 +1,5 @@ OBJCOPY=objcopy +ASFLAGS+=-m32 all: sos_qemu.img @@ -30,7 +31,7 @@ sos.bin: sos_bsect.elf # linked together (hence we deal with a SINGLE image that we split # above) because they share some symbol definitions sos_bsect.elf: bootsect.o compile_kernel - $(LD) --warn-common -T ./sos_bsect.lds -o $@ \ + $(LD) -m elf_i386 --warn-common -T ./sos_bsect.lds -o $@ \ bootsect.o $(wildcard ../hwcore/*.o ../drivers/*.o ../sos/*.o) compile_kernel: