diff options
Diffstat (limited to 'include/elf.h')
-rw-r--r-- | include/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h index 7970fd2c95..de1549ee86 100644 --- a/include/elf.h +++ b/include/elf.h @@ -414,6 +414,7 @@ static inline size_t elf_get_mem_size(struct elf_image *elf) return elf->high_addr - elf->low_addr; } +struct elf_image *elf_open_binary(void *buf); struct elf_image *elf_open(const char *filename); void elf_close(struct elf_image *elf); int elf_load(struct elf_image *elf); @@ -431,6 +432,7 @@ ELF_GET_FIELD(hdr, e_phnum, u16) ELF_GET_FIELD(hdr, e_phoff, u64) ELF_GET_FIELD(hdr, e_phentsize, u16) ELF_GET_FIELD(hdr, e_type, u16) +ELF_GET_FIELD(hdr, e_machine, u16) ELF_GET_FIELD(phdr, p_paddr, u64) ELF_GET_FIELD(phdr, p_filesz, u64) ELF_GET_FIELD(phdr, p_memsz, u64) |