From ec4aee35de3446713c6754641cdad82adc011204 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 15 Mar 2022 16:29:24 +0000 Subject: infrastructure for dynamic symbol resolution --- kc/boot/Makefile | 3 ++- kc/boot/kc_main.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'kc/boot') diff --git a/kc/boot/Makefile b/kc/boot/Makefile index 159fec1..44ae161 100644 --- a/kc/boot/Makefile +++ b/kc/boot/Makefile @@ -8,7 +8,8 @@ TARGET := efi.os .DEFAULT: $(TARGET) CPPFLAGS += -I../../api -I ../api -OBJS := entry_x86_64.o reloc_x86_64.o kc_main.o elf64.o memcmp.o memcpy.o \ +OBJS := entry_x86_64.o reloc_x86_64.o dynamic_x86_64.o \ + kc_main.o elf64.o memcmp.o memcpy.o \ memmove.o memset.o loader_paging.o DEPS := $(patsubst %.o,%.d,$(OBJS)) diff --git a/kc/boot/kc_main.c b/kc/boot/kc_main.c index 5b32ee6..cb8eb7a 100644 --- a/kc/boot/kc_main.c +++ b/kc/boot/kc_main.c @@ -452,6 +452,8 @@ EFI_STATUS kc_main(struct efi_loader_interface *interface) e_bs = loader_interface->system_table->BootServices; eto = loader_interface->system_table->ConOut; + plog(L"opening kernel image\r\n"); + if (!EFI_ERROR((status = interface->image_open(&kernel_image))) && !EFI_ERROR((status = interface->image_alloc(&kernel_image))) && !EFI_ERROR((status = interface->image_load(&kernel_image)))) -- cgit v1.3.1-1-g115d