From bff63a4337eb3388617d230970c5eb2684d6a215 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 19 Dec 2021 01:16:51 +0000 Subject: i don't know what i'm doing anymore --- shim/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shim/Makefile') diff --git a/shim/Makefile b/shim/Makefile index 42007b8..7183088 100644 --- a/shim/Makefile +++ b/shim/Makefile @@ -14,11 +14,12 @@ CFLAGS += -Wno-unused-const-variable -Wno-unused-function -fvisibility=hidden \ -g -fshort-wchar -mgeneral-regs-only LIBDIRS += -L$(dir $(shell $(CC) -print-libgcc-file-name)) -LDSCRIPT := shim.ld +LDSCRIPT := ../lib/component.ld LDFLAGS += -z max-page-size=4096 --export-dynamic -pic --no-dynamic-linker LOADLIBES := -lgcc -OBJS := entry.o elf.o memcmp.o memcpy.o memmove.o memset.o +OBJS := entry_x86_64.o reloc_x86_64.o kc_main.o elf64.o memcmp.o memcpy.o \ + memmove.o memset.o $(OBJS): CFLAGS += -fPIC DEPS := $(patsubst %.o,%.d,$(OBJS)) -- cgit v1.3.1-1-g115d