Ver código fonte

add some datastructure

fslongjin 2 anos atrás
pai
commit
46b08c7738
2 arquivos alterados com 11 adições e 0 exclusões
  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;
+