|
Barrelfish
|
Rudimentary ELF loader and handling routines. More...
Functions | |
| errval_t | elf_load_tls (uint16_t em_machine, elf_allocator_fn allocate_func, void *state, lvaddr_t base, size_t size, genvaddr_t *retentry, genvaddr_t *ret_tlsbase, size_t *ret_tlsinitlen, size_t *ret_tlstotallen) |
| Load ELF binary image into memory. More... | |
| size_t | elf_virtual_size (lvaddr_t base) |
| Calculates the size of the loadable portion of the elf image in virtual memory. This is the amount of virtual memory required to load an image. | |
| genvaddr_t | elf_virtual_base (lvaddr_t base) |
| Calculates the base of the loadable portion of the elf image in virtual memory. | |
| errval_t | elf_get_eh_info (lvaddr_t elfbase, size_t elfsize, lvaddr_t *eh_frame, size_t *eh_frame_size, lvaddr_t *eh_frame_hdr, size_t *eh_frame_hdr_size) |
| obtains the error handling frame information form the elf image More... | |
Rudimentary ELF loader and handling routines.
| errval_t elf_get_eh_info | ( | lvaddr_t | elfbase, |
| size_t | elfsize, | ||
| lvaddr_t * | eh_frame, | ||
| size_t * | eh_frame_size, | ||
| lvaddr_t * | eh_frame_hdr, | ||
| size_t * | eh_frame_hdr_size | ||
| ) |
obtains the error handling frame information form the elf image
| elfbase | virtual base address of the mapped elf |
| elfsize | size of the elf in bytes |
| eh_frame | returns the virtual address of the eh_frame |
| eh_frame_size | returns the size of the eh_frame |
| eh_frame_hdr | returns the virtual address of the eh_frame_hdr |
| eh_frame_hdr_size | returns the size of the eh_frame_hdr |
| errval_t elf_load_tls | ( | uint16_t | em_machine, |
| elf_allocator_fn | allocate_func, | ||
| void * | state, | ||
| lvaddr_t | base, | ||
| size_t | size, | ||
| genvaddr_t * | retentry, | ||
| genvaddr_t * | ret_tlsbase, | ||
| size_t * | ret_tlsinitlen, | ||
| size_t * | ret_tlstotallen | ||
| ) |
Load ELF binary image into memory.
This function loads an ELF binary image, based at 'base' and of size 'size' into the memory provided by 'allocate'
| em_machine | ELF machine type. |
| allocate | Memory allocation function. |
| state | Pointer to state for allocation function. |
| base | Base address of ELF binary image in memory. |
| size | Size of ELF binary image in bytes. |
| retentry | Used to return entry point address |
| ret_tlsbase | Used to return TLS block base address |
| ret_tlssize | Used to return TLS block size |
1.8.11