summaryrefslogtreecommitdiff
path: root/kc
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-18 21:41:11 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-18 21:41:11 +0000
commit321c216b927126c6a91ecec04d9683e649653775 (patch)
tree76e6bfb8948011777896f57d97c15e5c5ec69825 /kc
parentd07a644f542a7344941d1e4fed28c09531ba12c2 (diff)
-mgeneral-regs-only should apply to all objects
Diffstat (limited to 'kc')
-rw-r--r--kc/core/Makefile4
1 files changed, 2 insertions, 2 deletions
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))