From f13b26eeb4f9afba3a1aed2516655b34139979aa Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 27 Apr 2021 19:02:17 +0200 Subject: Making kernel Higher-Half --- src/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 32c8a7a..e4b2a82 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ EXEC := boucane -CC := g++ -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include +CC := g++ -mcmodel=large -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include LD_SCRIPT := linker.ld # Note that BOOT_OBJ do not match boot.S @@ -14,8 +14,7 @@ RES_OBJ := $(addsuffix .o,$(basename $(shell find ./res -type f))) all: $(EXEC) $(EXEC): boot/boot.o $(BOOT_OBJ) $(DRIVERS_OBJ) $(LIBS_OBJ) $(CORE_OBJ) $(RES_OBJ) boucane.o - echo "Resource: $(RES_OBJ)" - $(CC) -n -T $(LD_SCRIPT) -nostdlib -o $@ $^ + $(CC) -T $(LD_SCRIPT) -nostdlib -o $@ $^ %.o: %.S as -o $@ $^ -- cgit v1.2.3