3
* ELF types, current architecture.
7
* Copyright (C) 2010 Oracle Corporation
9
* This file is part of VirtualBox Open Source Edition (OSE), as
10
* available from http://www.virtualbox.org. This file is free software;
11
* you can redistribute it and/or modify it under the terms of the GNU
12
* General Public License (GPL) as published by the Free Software
13
* Foundation, in version 2 as it comes in the "COPYING" file of the
14
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17
* The contents of this file may alternatively be used under the terms
18
* of the Common Development and Distribution License Version 1.0
19
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20
* VirtualBox OSE distribution, in which case the provisions of the
21
* CDDL are applicable instead of those of the GPL.
23
* You may elect to license modified versions of this file under the
24
* terms and conditions of either the GPL or the CDDL or both.
28
#ifndef ___internal_ldrELF_h
29
#define ___internal_ldrELF_h
31
#if defined(RT_ARCH_AMD64)
32
# include "ldrELF64.h"
33
typedef Elf64_Addr Elf_Addr;
34
typedef Elf64_Half Elf_Half;
35
typedef Elf64_Off Elf_Off;
36
typedef Elf64_Sword Elf_Sword;
37
typedef Elf64_Word Elf_Word;
38
typedef Elf64_Size Elf_Size;
39
typedef Elf64_Hashelt Elf_Hashelt;
40
typedef Elf64_Ehdr Elf_Ehdr;
41
typedef Elf64_Shdr Elf_Shdr;
42
typedef Elf64_Phdr Elf_Phdr;
43
typedef Elf64_Nhdr Elf_Nhdr;
44
typedef Elf64_Dyn Elf_Dyn;
45
typedef Elf64_Rel Elf_Rel;
46
typedef Elf64_Rela Elf_Rela;
47
typedef Elf64_Sym Elf_Sym;
49
#define ELF_R_SYM ELF64_R_SYM
50
#define ELF_R_TYPE ELF64_R_TYPE
51
#define ELF_R_INFO ELF64_R_INFO
52
#define ELF_ST_BIND ELF64_ST_BIND
53
#define ELF_ST_TYPE ELF64_ST_TYPE
54
#define ELF_ST_INFO ELF64_ST_INFO
56
#elif defined(RT_ARCH_X86)
57
# include "ldrELF32.h"
58
typedef Elf32_Addr Elf_Addr;
59
typedef Elf32_Half Elf_Half;
60
typedef Elf32_Off Elf_Off;
61
typedef Elf32_Sword Elf_Sword;
62
typedef Elf32_Word Elf_Word;
63
typedef Elf32_Size Elf_Size;
64
typedef Elf32_Hashelt Elf_Hashelt;
65
typedef Elf32_Ehdr Elf_Ehdr;
66
typedef Elf32_Shdr Elf_Shdr;
67
typedef Elf32_Phdr Elf_Phdr;
68
typedef Elf32_Nhdr Elf_Nhdr;
69
typedef Elf32_Dyn Elf_Dyn;
70
typedef Elf32_Rel Elf_Rel;
71
typedef Elf32_Rela Elf_Rela;
72
typedef Elf32_Sym Elf_Sym;
74
#define ELF_R_SYM ELF32_R_SYM
75
#define ELF_R_TYPE ELF32_R_TYPE
76
#define ELF_R_INFO ELF32_R_INFO
77
#define ELF_ST_BIND ELF32_ST_BIND
78
#define ELF_ST_TYPE ELF32_ST_TYPE
79
#define ELF_ST_INFO ELF32_ST_INFO
85
#endif /* ___internal_ldrELF_h */