summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 19:21:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 19:21:47 +0000
commit8cbc20e05c24cc3e2b0b4774f4850357b9f46595 (patch)
tree862c04d5603d53111ee969409bc86b6e9739982a /nuttx/include
parent573c3911fcc480294700bdd82b8509499babb2d2 (diff)
downloadpx4-nuttx-8cbc20e05c24cc3e2b0b4774f4850357b9f46595.tar.gz
px4-nuttx-8cbc20e05c24cc3e2b0b4774f4850357b9f46595.tar.bz2
px4-nuttx-8cbc20e05c24cc3e2b0b4774f4850357b9f46595.zip
Finishes basic coding of ELF file support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5259 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/binfmt/elf.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/include/nuttx/binfmt/elf.h b/nuttx/include/nuttx/binfmt/elf.h
index 8a12c5019..6b13c1087 100644
--- a/nuttx/include/nuttx/binfmt/elf.h
+++ b/nuttx/include/nuttx/binfmt/elf.h
@@ -69,14 +69,17 @@ struct elf_loadinfo_s
uintptr_t alloc; /* Allocated memory with the ELF file is loaded */
size_t allocsize; /* Size of the memory allocation */
off_t filelen; /* Length of the entire ELF file */
+ int filfd; /* Descriptor for the file being loaded */
#ifdef CONFIG_ELF_CONSTRUCTORS
- uintptr_t ctors; /* Static constructors */
+ uintptr_t ctors; /* Location of static constructors in memory */
+ uint16_t nctors; /* Number of constructors */
#endif
- int filfd; /* Descriptor for the file being loaded */
uint16_t symtabidx; /* Symbol table section index */
uint16_t strtabidx; /* String table section index */
+ uint16_t buflen; /* size of iobuffer[] */
Elf32_Ehdr ehdr; /* Buffered ELF file header */
FAR Elf32_Shdr *shdr; /* Buffered ELF section headers */
+ uint8_t *iobuffer; /* File I/O buffer */
};
/****************************************************************************