summaryrefslogtreecommitdiff
path: root/src/module.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-09-28 02:10:43 +0000
committer[email protected] <[email protected]>2011-09-28 02:10:43 +0000
commit96049b7e5c2475f44f49fb1a25a8b06eba9fc231 (patch)
tree645f06cc41b20a56d0113434058354153aeafb6a /src/module.h
parent9bb329daee2f842a724d3cdede9413a839e5069c (diff)
add module support for cortex-m3 feature
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1731 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/module.h')
-rw-r--r--src/module.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/module.h b/src/module.h
index d50d3d364f..c35a7723fe 100644
--- a/src/module.h
+++ b/src/module.h
@@ -56,6 +56,12 @@ typedef rt_uint16_t Elf32_Half; /* Unsigned medium integer */
(ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
(ehdr).e_ident[EI_MAG3] == ELFMAG3)
+#define ET_NONE 0 /* No file type */
+#define ET_REL 1 /* Relocatable file */
+#define ET_EXEC 2 /* Executable file */
+#define ET_DYN 3 /* Shared object file */
+#define ET_CORE 4 /* Core file */
+
/* ELF Header */
typedef struct elfhdr
{
@@ -148,6 +154,7 @@ typedef struct elf32_sym
#define STT_LOPROC 13 /* processor specific range */
#define STT_HIPROC 15
+#define STN_UNDEF 0 /* undefined */
#define ELF_ST_BIND(info) ((info) >> 4)
#define ELF_ST_TYPE(info) ((info) & 0xf)
@@ -176,16 +183,20 @@ typedef struct
/*
* Relocation type for arm
*/
-#define R_ARM_NONE 0
-#define R_ARM_PC24 1
-#define R_ARM_ABS32 2
-#define R_ARM_GLOB_DAT 21
-#define R_ARM_JUMP_SLOT 22
-#define R_ARM_RELATIVE 23
-#define R_ARM_PLT32 27
-#define R_ARM_CALL 28
-#define R_ARM_JUMP24 29
-#define R_ARM_V4BX 40
+#define R_ARM_NONE 0
+#define R_ARM_PC24 1
+#define R_ARM_ABS32 2
+#define R_ARM_REL32 3
+#define R_ARM_THM_CALL 10
+#define R_ARM_GLOB_DAT 21
+#define R_ARM_JUMP_SLOT 22
+#define R_ARM_RELATIVE 23
+#define R_ARM_GOT_BREL 26
+#define R_ARM_PLT32 27
+#define R_ARM_CALL 28
+#define R_ARM_JUMP24 29
+#define R_ARM_THM_JUMP24 30
+#define R_ARM_V4BX 40
/* Program Header */
typedef struct