misc: efi-stub: Add helper functions to parse/load ELF32 image

This patch adds a file containing some helper functions to load
or validate ELF32 images.

Tracked-On: #6241
Signed-off-by: Toshiki Nishioka <toshiki.nishioka@intel.com>
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
Yifan Liu
2021-06-22 16:52:53 +08:00
committed by wenlingz
parent 6cb667f137
commit e32640aab6
3 changed files with 202 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
HV_OBJDIR:=build
HV_SRC:=../../hypervisor
C_SRCS = boot.c pe.c malloc.c multiboot.c
C_SRCS = boot.c pe.c malloc.c multiboot.c elf32.c
ACRN_OBJS := $(patsubst %.c,$(EFI_OBJDIR)/%.o,$(C_SRCS))
INCLUDE_PATH += $(INCDIR)/efi
INCLUDE_PATH += $(HV_SRC)/include/public