xref: /haiku/headers/private/kernel/boot/arch.h (revision f1244978152350f9cc010e766d09c2e9ad34dfce)
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 
8957a1b17SIngo Weinhold #include <SupportDefs.h>
9957a1b17SIngo Weinhold #include <boot/elf.h>
10957a1b17SIngo Weinhold 
11957a1b17SIngo Weinhold 
12957a1b17SIngo Weinhold #ifdef __cplusplus
13957a1b17SIngo Weinhold extern "C" {
14957a1b17SIngo Weinhold #endif
15957a1b17SIngo Weinhold 
16957a1b17SIngo Weinhold /* ELF support */
17957a1b17SIngo Weinhold 
18*f1244978SAlex Smith extern status_t boot_arch_elf_relocate_rel(preloaded_elf32_image *image,
19957a1b17SIngo Weinhold 	struct Elf32_Rel *rel, int rel_len);
20*f1244978SAlex Smith extern status_t boot_arch_elf_relocate_rela(preloaded_elf32_image *image,
21957a1b17SIngo Weinhold 	struct Elf32_Rela *rel, int rel_len);
22957a1b17SIngo Weinhold 
23957a1b17SIngo Weinhold 
24957a1b17SIngo Weinhold #ifdef __cplusplus
25957a1b17SIngo Weinhold }
26957a1b17SIngo Weinhold #endif
27957a1b17SIngo Weinhold 
28957a1b17SIngo Weinhold #endif	/* KERNEL_BOOT_ARCH_H */
29