1/* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef ELF_LOAD_IMAGE_H 6#define ELF_LOAD_IMAGE_H 7 8#include "runtime_loader_private.h" 9 10 11status_t parse_fat_header(int fd, const char* path, elf_ehdr* eheader, 12 uint64_t* imageOffset, uint64_t* imageSize, int32* _pheaderSize, 13 int32* _sheaderSize); 14status_t parse_elf_header(elf_ehdr* eheader, int32* _pheaderSize, 15 int32* _sheaderSize); 16status_t load_image(char const* name, image_type type, const char* rpath, 17 image_t** _image); 18 19 20#endif // ELF_LOAD_IMAGE_H 21