xref: /haiku/src/system/runtime_loader/elf_load_image.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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 
11 status_t	parse_elf_header(elf_ehdr* eheader, int32* _pheaderSize,
12 				int32* _sheaderSize);
13 #if defined(_COMPAT_MODE)
14 	#if defined(__x86_64__)
15 status_t	parse_elf32_header(Elf32_Ehdr* eheader, int32* _pheaderSize,
16 	int32* _sheaderSize);
17 	#else
18 status_t	parse_elf64_header(Elf64_Ehdr* eheader, int32* _pheaderSize,
19 	int32* _sheaderSize);
20 	#endif
21 #endif
22 status_t	load_image(char const* name, image_type type, const char* rpath,
23 				const char* requestingObjectPath, image_t** _image);
24 
25 
26 #endif	// ELF_LOAD_IMAGE_H
27