blob: 8cb2aaecd52e7f59ae452d19765a55d5a8b6c854 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001/* External ELF types.
Roland McGrathb088f212010-08-18 16:53:43 -07002 Copyright (C) 1998-2010 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02003 This file is part of elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00004 Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
5
Mark Wielaardde2ed972012-06-05 17:15:16 +02006 This file is free software; you can redistribute it and/or modify
7 it under the terms of either
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00008
Mark Wielaardde2ed972012-06-05 17:15:16 +02009 * the GNU Lesser General Public License as published by the Free
10 Software Foundation; either version 3 of the License, or (at
11 your option) any later version
12
13 or
14
15 * the GNU General Public License as published by the Free
16 Software Foundation; either version 2 of the License, or (at
17 your option) any later version
18
19 or both in parallel, as here.
20
21 elfutils is distributed in the hope that it will be useful, but
Ulrich Drepper361df7d2006-04-04 21:38:57 +000022 WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 General Public License for more details.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000025
Mark Wielaardde2ed972012-06-05 17:15:16 +020026 You should have received copies of the GNU General Public License and
27 the GNU Lesser General Public License along with this program. If
28 not, see <http://www.gnu.org/licenses/>. */
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000029
30#ifndef _EXTTYPES_H
31#define _EXTTYPES_H 1
32
33/* Integral types. */
34typedef char Elf32_Ext_Addr[ELF32_FSZ_ADDR];
35typedef char Elf32_Ext_Off[ELF32_FSZ_OFF];
36typedef char Elf32_Ext_Half[ELF32_FSZ_HALF];
37typedef char Elf32_Ext_Sword[ELF32_FSZ_SWORD];
38typedef char Elf32_Ext_Word[ELF32_FSZ_WORD];
39typedef char Elf32_Ext_Sxword[ELF32_FSZ_SXWORD];
40typedef char Elf32_Ext_Xword[ELF32_FSZ_XWORD];
41
42typedef char Elf64_Ext_Addr[ELF64_FSZ_ADDR];
43typedef char Elf64_Ext_Off[ELF64_FSZ_OFF];
44typedef char Elf64_Ext_Half[ELF64_FSZ_HALF];
45typedef char Elf64_Ext_Sword[ELF64_FSZ_SWORD];
46typedef char Elf64_Ext_Word[ELF64_FSZ_WORD];
47typedef char Elf64_Ext_Sxword[ELF64_FSZ_SXWORD];
48typedef char Elf64_Ext_Xword[ELF64_FSZ_XWORD];
49
50
51/* Define the composed types. */
52#define START(Bits, Name, EName) typedef struct {
53#define END(Bits, Name) } ElfW2(Bits, Name)
54#define TYPE_NAME(Type, Name) Type Name;
55#define TYPE_EXTRA(Text) Text
56#define TYPE_XLATE(Text)
57
58/* Get the abstract definitions. */
59#include "abstract.h"
60
61/* And define the types. */
62Ehdr32 (Ext_);
63Phdr32 (Ext_);
64Shdr32 (Ext_);
65Sym32 (Ext_);
66Rel32 (Ext_);
67Rela32 (Ext_);
68Note32 (Ext_);
69Dyn32 (Ext_);
70Verdef32 (Ext_);
71Verdaux32 (Ext_);
72Verneed32 (Ext_);
73Vernaux32 (Ext_);
74Syminfo32 (Ext_);
75Move32 (Ext_);
Roland McGrathb088f212010-08-18 16:53:43 -070076Lib32 (Ext_);
Roland McGrathcb6d8652007-08-23 08:10:54 +000077auxv_t32 (Ext_);
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000078
79Ehdr64 (Ext_);
80Phdr64 (Ext_);
81Shdr64 (Ext_);
82Sym64 (Ext_);
83Rel64 (Ext_);
84Rela64 (Ext_);
85Note64 (Ext_);
86Dyn64 (Ext_);
87Verdef64 (Ext_);
88Verdaux64 (Ext_);
89Verneed64 (Ext_);
90Vernaux64 (Ext_);
91Syminfo64 (Ext_);
92Move64 (Ext_);
Roland McGrathb088f212010-08-18 16:53:43 -070093Lib64 (Ext_);
Roland McGrathcb6d8652007-08-23 08:10:54 +000094auxv_t64 (Ext_);
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000095
96#undef START
97#undef END
98#undef TYPE_NAME
99#undef TYPE_EXTRA
100#undef TYPE_XLATE
101
102#endif /* exttypes.h */