| /* |
| * Copyright 2014, NICTA |
| * |
| * This software may be distributed and modified according to the terms of |
| * the GNU General Public License version 2. Note that NO WARRANTY is provided. |
| * See "LICENSE_GPLv2.txt" for details. |
| * |
| * @TAG(NICTA_GPL) |
| */ |
| |
| #ifndef _LIB_VMM_PLATFORM_ELF_HELPER_H_ |
| #define _LIB_VMM_PLATFORM_ELF_HELPER_H_ |
| |
| #include "vmm/vmm.h" |
| |
| /* |
| Reads the elf header and elf program headers from a file |
| when given a sufficiently large memory buffer |
| */ |
| int vmm_read_elf_headers(void *buf, vmm_t *vmm, int fd, size_t buf_size); |
| |
| #endif |