summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-29 00:52:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-29 00:52:23 +0000
commitade5fb42679b7e890f29487ca850c65f9944fa1e (patch)
tree84f10662c214892091c5b7d5dce796b6f736c6b4 /nuttx/include
parent09dcebb6991350498b809a20b55fbcfd982a0b2a (diff)
downloadpx4-nuttx-ade5fb42679b7e890f29487ca850c65f9944fa1e.tar.gz
px4-nuttx-ade5fb42679b7e890f29487ca850c65f9944fa1e.tar.bz2
px4-nuttx-ade5fb42679b7e890f29487ca850c65f9944fa1e.zip
Finish implemention of ELF loader static constructor support. Still some issues.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5272 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/binfmt/elf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/binfmt/elf.h b/nuttx/include/nuttx/binfmt/elf.h
index aa04adaf2..4770d82a3 100644
--- a/nuttx/include/nuttx/binfmt/elf.h
+++ b/nuttx/include/nuttx/binfmt/elf.h
@@ -59,6 +59,9 @@
/****************************************************************************
* Public Types
****************************************************************************/
+/* The type of one C++ constructor */
+
+typedef FAR void (*elf_ctor_t)(void);
/* This struct provides a desciption of the currently loaded instantiation
* of an ELF binary.
@@ -71,7 +74,7 @@ struct elf_loadinfo_s
off_t filelen; /* Length of the entire ELF file */
int filfd; /* Descriptor for the file being loaded */
#ifdef CONFIG_ELF_CONSTRUCTORS
- uintptr_t ctors; /* Location of static constructors in memory */
+ elf_ctor_t ctors; /* Pointer to a list of constructors */
uint16_t nctors; /* Number of constructors */
#endif
uint16_t symtabidx; /* Symbol table section index */