75c31ae28d
Reduce duplication of code by * Removing from elf_common.h definitions available in os/kernel/elf.h * Deleting elf32.h and elf64.h * Renaming elf_common.h to elf_private.h * Updating source to build using public and private ELF header files together Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
26 lines
697 B
C
26 lines
697 B
C
/*
|
|
* Copyright 2005, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef KERNEL_BOOT_ARCH_H
|
|
#define KERNEL_BOOT_ARCH_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
#include <boot/elf.h>
|
|
|
|
|
|
/* ELF support */
|
|
|
|
extern status_t boot_arch_elf_relocate_rel(preloaded_elf32_image* image,
|
|
Elf32_Rel* rel, int rel_len);
|
|
extern status_t boot_arch_elf_relocate_rel(preloaded_elf64_image* image,
|
|
Elf64_Rel* rel, int rel_len);
|
|
extern status_t boot_arch_elf_relocate_rela(preloaded_elf32_image* image,
|
|
Elf32_Rela* rel, int rel_len);
|
|
extern status_t boot_arch_elf_relocate_rela(preloaded_elf64_image* image,
|
|
Elf64_Rela* rel, int rel_len);
|
|
|
|
|
|
#endif /* KERNEL_BOOT_ARCH_H */
|