From 0d2ddecc9aeb232746b76b4eebdb1381053a8951 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 27 Jan 2025 02:05:07 +0000 Subject: checkpoint. we can fake syscall with the dummy gdt --- boot/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'boot/Makefile') diff --git a/boot/Makefile b/boot/Makefile index 7f4be6b..3c47336 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -14,6 +14,8 @@ CFLAGS += --target=$(ARCH)-unknown-windows -fshort-wchar -mno-avx \ -mno-sse -mno-mmx -funsigned-char -Wno-pointer-sign -ggdb \ -fno-ms-extensions +ASFLAGS += --target=$(ARCH)-unknown-windows -ggdb + LDFLAGS := --target=$(ARCH)-unknown-windows -nostdlib -ggdb \ -Wl,-entry:_start,-subsystem:efi_application -fuse-ld=lld-link @@ -22,7 +24,7 @@ all: $(IMAGE) CRT_OBJS := start.o bind.o LIB_OBJS := memcmp.o memset.o memcpy.o memmove.o string.o elf64.o printf.o stdio.o EFI_OBJS := file.o memory.o protocol.o image.o -APP_OBJS := main.o +APP_OBJS := main.o fake_syscall_entry.o OBJS := $(CRT_OBJS) $(LIB_OBJS) $(EFI_OBJS) $(APP_OBJS) DEPS := $(OBJS:.o=.d) -- cgit v1.3.1-1-g115d