elfloader.h File Reference

Header file for the Contiki ELF loader. More...

#include "cfs/cfs.h"

Go to the source code of this file.

Defines

#define ELFLOADER_OK   0
 Return value from elfloader_load() indicating that loading worked.
#define ELFLOADER_BAD_ELF_HEADER   1
 Return value from elfloader_load() indicating that the ELF file had a bad header.
#define ELFLOADER_NO_SYMTAB   2
 Return value from elfloader_load() indicating that no symbol table could be found in the ELF file.
#define ELFLOADER_NO_STRTAB   3
 Return value from elfloader_load() indicating that no string table could be found in the ELF file.
#define ELFLOADER_NO_TEXT   4
 Return value from elfloader_load() indicating that the size of the .text segment was zero.
#define ELFLOADER_SYMBOL_NOT_FOUND   5
 Return value from elfloader_load() indicating that a symbol specific symbol could not be found.
#define ELFLOADER_SEGMENT_NOT_FOUND   6
 Return value from elfloader_load() indicating that one of the required segments (.data, .bss, or .text) could not be found.
#define ELFLOADER_NO_STARTPOINT   7
 Return value from elfloader_load() indicating that no starting point could be found in the loaded module.

Functions

void elfloader_init (void)
 elfloader initialization function.
int elfloader_load (int fd)
 Load and relocate an ELF file.

Variables

struct process *const * elfloader_autostart_processes
 A pointer to the processes loaded with elfloader_load().
char elfloader_unknown [30]
 If elfloader_load() could not find a specific symbol, it is copied into this array.

Detailed Description

Header file for the Contiki ELF loader.

Author:
Adam Dunkels <adam@sics.se>

Definition in file elfloader.h.


Generated on Mon Apr 11 14:23:46 2011 for Contiki 2.5 by  doxygen 1.6.1