Go to the documentation of this file.
75 #ifndef __ELFLOADER_H__
76 #define __ELFLOADER_H__
83 #define ELFLOADER_OK 0
88 #define ELFLOADER_BAD_ELF_HEADER 1
93 #define ELFLOADER_NO_SYMTAB 2
98 #define ELFLOADER_NO_STRTAB 3
103 #define ELFLOADER_NO_TEXT 4
111 #define ELFLOADER_SYMBOL_NOT_FOUND 5
116 #define ELFLOADER_SEGMENT_NOT_FOUND 6
121 #define ELFLOADER_NO_STARTPOINT 7
162 #ifndef ELFLOADER_DATAMEMORY_SIZE
163 #ifdef ELFLOADER_CONF_DATAMEMORY_SIZE
164 #define ELFLOADER_DATAMEMORY_SIZE ELFLOADER_CONF_DATAMEMORY_SIZE
166 #define ELFLOADER_DATAMEMORY_SIZE 0x100
170 #ifndef ELFLOADER_TEXTMEMORY_SIZE
171 #ifdef ELFLOADER_CONF_TEXTMEMORY_SIZE
172 #define ELFLOADER_TEXTMEMORY_SIZE ELFLOADER_CONF_TEXTMEMORY_SIZE
174 #define ELFLOADER_TEXTMEMORY_SIZE 0x100
178 typedef unsigned long elf32_word;
179 typedef signed long elf32_sword;
180 typedef unsigned short elf32_half;
181 typedef unsigned long elf32_off;
182 typedef unsigned long elf32_addr;
187 elf32_sword r_addend;