diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-03-15 16:29:24 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-03-15 16:29:24 +0000 |
| commit | ec4aee35de3446713c6754641cdad82adc011204 (patch) | |
| tree | fb40b7b153da4bbb47ec46b40144a18fbfbcf74b /kc/boot | |
| parent | 97fcd7d1fc4574753d91e6767a8d8a7653a7f7fe (diff) | |
infrastructure for dynamic symbol resolution
Diffstat (limited to 'kc/boot')
| -rw-r--r-- | kc/boot/Makefile | 3 | ||||
| -rw-r--r-- | kc/boot/kc_main.c | 2 |
2 files changed, 4 insertions, 1 deletions
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)))) |
