xref: /haiku/headers/private/kernel/boot/arch.h (revision ccadfaeeb577eb5f129adcc1441b92aaf9f5e443)
1957a1b17SIngo Weinhold /*
2957a1b17SIngo Weinhold  * Copyright 2005, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3957a1b17SIngo Weinhold  * Distributed under the terms of the MIT License.
4957a1b17SIngo Weinhold  */
5957a1b17SIngo Weinhold #ifndef KERNEL_BOOT_ARCH_H
6957a1b17SIngo Weinhold #define KERNEL_BOOT_ARCH_H
7957a1b17SIngo Weinhold 
8*ccadfaeeSAlex Smith 
9957a1b17SIngo Weinhold #include <SupportDefs.h>
10957a1b17SIngo Weinhold #include <boot/elf.h>
11957a1b17SIngo Weinhold 
12957a1b17SIngo Weinhold 
13957a1b17SIngo Weinhold /* ELF support */
14957a1b17SIngo Weinhold 
15f1244978SAlex Smith extern status_t boot_arch_elf_relocate_rel(preloaded_elf32_image* image,
16957a1b17SIngo Weinhold 	struct Elf32_Rel* rel, int rel_len);
17*ccadfaeeSAlex Smith extern status_t boot_arch_elf_relocate_rel(preloaded_elf64_image* image,
18*ccadfaeeSAlex Smith 	struct Elf64_Rel* rel, int rel_len);
19f1244978SAlex Smith extern status_t boot_arch_elf_relocate_rela(preloaded_elf32_image* image,
20957a1b17SIngo Weinhold 	struct Elf32_Rela* rel, int rel_len);
21*ccadfaeeSAlex Smith extern status_t boot_arch_elf_relocate_rela(preloaded_elf64_image* image,
22*ccadfaeeSAlex Smith 	struct Elf64_Rela* rel, int rel_len);
23957a1b17SIngo Weinhold 
24957a1b17SIngo Weinhold 
25957a1b17SIngo Weinhold #endif	/* KERNEL_BOOT_ARCH_H */
26