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>
33 lines
617 B
C
33 lines
617 B
C
/*
|
|
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
|
|
** Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_ELF_H
|
|
#define _KERNEL_ARCH_ELF_H
|
|
|
|
|
|
#include <elf_private.h>
|
|
|
|
|
|
struct elf_image_info;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int arch_elf_relocate_rel(struct elf_image_info *image,
|
|
struct elf_image_info *resolve_image, elf_rel *rel, int rel_len);
|
|
extern int arch_elf_relocate_rela(struct elf_image_info *image,
|
|
struct elf_image_info *resolve_image, elf_rela *rel, int rel_len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#include <arch_elf.h>
|
|
|
|
|
|
#endif /* _KERNEL_ARCH_ELF_H */
|