From 321c216b927126c6a91ecec04d9683e649653775 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Fri, 18 Feb 2022 21:41:11 +0000 Subject: -mgeneral-regs-only should apply to all objects --- kc/core/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kc') diff --git a/kc/core/Makefile b/kc/core/Makefile index cd440a1..589616f 100644 --- a/kc/core/Makefile +++ b/kc/core/Makefile @@ -17,8 +17,8 @@ GOBJS := entry_x86_64.o reloc_x86_64.o kprint.o serial.o port.o mmu.o \ IOBJS := # __attribute__((interrupt)) requires -mgeneral-regs-only -$(IOBJS): CFLAGS += -mgeneral-regs-only -$(IOBJS) $(GOBJS): CFLAGS += -mcmodel=small -fPIC +$(GOBJS): CFLAGS += -mgeneral-regs-only +$(GOBJS): CFLAGS += -mcmodel=small -fPIC OBJS := $(SOBJS) $(GOBJS) $(IOBJS) DEPS := $(patsubst %.o,%.d,$(OBJS)) -- cgit v1.3.1-1-g115d