diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-27 19:02:17 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-27 19:02:17 +0200 |
| commit | f13b26eeb4f9afba3a1aed2516655b34139979aa (patch) | |
| tree | 9ec48586fa57749f2c1cb40d940863d2251bd401 /src/Makefile | |
| parent | 9dc527b3be9d493dcf8cf1baf78477373eb5990d (diff) | |
Making kernel Higher-Half
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
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 $@ $^ |
