mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
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
This commit is contained in:
parent
86618a177b
commit
87e9dbc4c8
9 changed files with 493 additions and 11 deletions
|
|
@ -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 */
|
||||
#ifdef CONFIG_ELF_CONSTRUCTORS
|
||||
uintptr_t ctors; /* Static constructors */
|
||||
#endif
|
||||
int filfd; /* Descriptor for the file being loaded */
|
||||
#ifdef CONFIG_ELF_CONSTRUCTORS
|
||||
uintptr_t ctors; /* Location of static constructors in memory */
|
||||
uint16_t nctors; /* Number of constructors */
|
||||
#endif
|
||||
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 */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue