浏览代码

add some datastructure

fslongjin 2 年之前
父节点
当前提交
46b08c7738
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 1 0
      kernel/common/libELF/elf.c
  2. 10 0
      kernel/common/libELF/elf.h

+ 1 - 0
kernel/common/libELF/elf.c

@@ -0,0 +1 @@
+#include "elf.h"

+ 10 - 0
kernel/common/libELF/elf.h

@@ -0,0 +1,10 @@
+#pragma once
+#include <common/glib.h>
+
+// ====== ELF头文件中的
+typedef uint32_t Elf32_Addr;
+typedef uint16_t Elf32_Half;
+typedef uint32_t Elf32_Off;
+typedef uint32_t Elf32_SWord;
+typedef uint32_t Elf32_Word;
+