diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-29 00:52:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-29 00:52:23 +0000 |
commit | 71fad980c5dfe057dd380a05f1ca1e0bfad2ef1f (patch) | |
tree | 84f10662c214892091c5b7d5dce796b6f736c6b4 /nuttx/include | |
parent | 61c97b1ddcc40f068e549d12dc8e63445d3ee4f5 (diff) | |
download | px4-firmware-71fad980c5dfe057dd380a05f1ca1e0bfad2ef1f.tar.gz px4-firmware-71fad980c5dfe057dd380a05f1ca1e0bfad2ef1f.tar.bz2 px4-firmware-71fad980c5dfe057dd380a05f1ca1e0bfad2ef1f.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/binfmt/elf.h | 5 |
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 */ |