🆕 加载elf文件

This commit is contained in:
fslongjin
2022-05-18 18:27:00 +08:00
parent b0a7ec633d
commit 5df5d79900
9 changed files with 277 additions and 50 deletions

12
kernel/common/Makefile Normal file
View File

@ -0,0 +1,12 @@
CFLAGS += -I .
kernel_common_subdirs:=libELF
all:
@list='$(kernel_common_subdirs)'; for subdir in $$list; do \
echo "make all in $$subdir";\
cd $$subdir;\
$(MAKE) all CFLAGS="$(CFLAGS) -I";\
cd ..;\
done

View File

@ -0,0 +1,8 @@
all: elf.o
CFLAGS += -I .
elf.o: elf.c
gcc $(CFLAGS) -c elf.c -o elf.o