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, 1675c31ae2SSimon South Elf32_Rel* rel, int rel_len); 17*ccadfaeeSAlex Smith extern status_t boot_arch_elf_relocate_rel(preloaded_elf64_image* image, 1875c31ae2SSimon South Elf64_Rel* rel, int rel_len); 19f1244978SAlex Smith extern status_t boot_arch_elf_relocate_rela(preloaded_elf32_image* image, 2075c31ae2SSimon South Elf32_Rela* rel, int rel_len); 21*ccadfaeeSAlex Smith extern status_t boot_arch_elf_relocate_rela(preloaded_elf64_image* image, 2275c31ae2SSimon South Elf64_Rela* rel, int rel_len); 23957a1b17SIngo Weinhold 24957a1b17SIngo Weinhold 25957a1b17SIngo Weinhold #endif /* KERNEL_BOOT_ARCH_H */ 26