xref: /haiku/src/system/boot/loader/elf.h (revision b6f76ebe7153b94820cf35f8db4facc158841abb)
15af32e75SAxel Dörfler /*
25af32e75SAxel Dörfler ** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3*b6f76ebeSAugustin Cavalier ** Distributed under the terms of the MIT License.
45af32e75SAxel Dörfler */
55af32e75SAxel Dörfler #ifndef LOADER_ELF_H
65af32e75SAxel Dörfler #define LOADER_ELF_H
75af32e75SAxel Dörfler 
85af32e75SAxel Dörfler 
95af32e75SAxel Dörfler #include <boot/elf.h>
105af32e75SAxel Dörfler #include <boot/vfs.h>
115af32e75SAxel Dörfler 
125af32e75SAxel Dörfler 
135e972c0fSFredrik Holmqvist extern void elf_init();
145af32e75SAxel Dörfler extern status_t elf_load_image(Directory* directory, const char* path);
15f1244978SAlex Smith extern status_t elf_load_image(int fd, preloaded_image** _image);
165af32e75SAxel Dörfler 
17f1244978SAlex Smith extern status_t elf_relocate_image(preloaded_image* image);
18ccadfaeeSAlex Smith 
19957a1b17SIngo Weinhold 
205af32e75SAxel Dörfler #endif	/* LOADER_ELF_H */
21