Finish implemention of ELF loader static constructor support. Still some issues.

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5272 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-10-29 00:52:23 +00:00
parent 61c97b1ddc
commit 71fad980c5
21 changed files with 532 additions and 928 deletions
+4 -1
View File
@@ -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 */