|
Packit Service |
97d2fb |
/* External ELF types.
|
|
Packit Service |
97d2fb |
Copyright (C) 1998-2010, 2015 Red Hat, Inc.
|
|
Packit Service |
97d2fb |
This file is part of elfutils.
|
|
Packit Service |
97d2fb |
Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
This file is free software; you can redistribute it and/or modify
|
|
Packit Service |
97d2fb |
it under the terms of either
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
* the GNU Lesser General Public License as published by the Free
|
|
Packit Service |
97d2fb |
Software Foundation; either version 3 of the License, or (at
|
|
Packit Service |
97d2fb |
your option) any later version
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
or
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
* the GNU General Public License as published by the Free
|
|
Packit Service |
97d2fb |
Software Foundation; either version 2 of the License, or (at
|
|
Packit Service |
97d2fb |
your option) any later version
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
or both in parallel, as here.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
elfutils is distributed in the hope that it will be useful, but
|
|
Packit Service |
97d2fb |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
97d2fb |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
97d2fb |
General Public License for more details.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
You should have received copies of the GNU General Public License and
|
|
Packit Service |
97d2fb |
the GNU Lesser General Public License along with this program. If
|
|
Packit Service |
97d2fb |
not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
#ifndef _EXTTYPES_H
|
|
Packit Service |
97d2fb |
#define _EXTTYPES_H 1
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
/* Integral types. */
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Addr[ELF32_FSZ_ADDR];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Off[ELF32_FSZ_OFF];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Half[ELF32_FSZ_HALF];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Sword[ELF32_FSZ_SWORD];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Word[ELF32_FSZ_WORD];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Sxword[ELF32_FSZ_SXWORD];
|
|
Packit Service |
97d2fb |
typedef char Elf32_Ext_Xword[ELF32_FSZ_XWORD];
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Addr[ELF64_FSZ_ADDR];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Off[ELF64_FSZ_OFF];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Half[ELF64_FSZ_HALF];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Sword[ELF64_FSZ_SWORD];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Word[ELF64_FSZ_WORD];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Sxword[ELF64_FSZ_SXWORD];
|
|
Packit Service |
97d2fb |
typedef char Elf64_Ext_Xword[ELF64_FSZ_XWORD];
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
/* Define the composed types. */
|
|
Packit Service |
97d2fb |
#define START(Bits, Name, EName) typedef struct {
|
|
Packit Service |
97d2fb |
#define END(Bits, Name) } ElfW2(Bits, Name)
|
|
Packit Service |
97d2fb |
#define TYPE_NAME(Type, Name) Type Name;
|
|
Packit Service |
97d2fb |
#define TYPE_EXTRA(Text) Text
|
|
Packit Service |
97d2fb |
#define TYPE_XLATE(Text)
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
/* Get the abstract definitions. */
|
|
Packit Service |
97d2fb |
#include "abstract.h"
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
/* And define the types. */
|
|
Packit Service |
97d2fb |
Ehdr32 (Ext_);
|
|
Packit Service |
97d2fb |
Phdr32 (Ext_);
|
|
Packit Service |
97d2fb |
Shdr32 (Ext_);
|
|
Packit Service |
97d2fb |
Sym32 (Ext_);
|
|
Packit Service |
97d2fb |
Rel32 (Ext_);
|
|
Packit Service |
97d2fb |
Rela32 (Ext_);
|
|
Packit Service |
97d2fb |
Note32 (Ext_);
|
|
Packit Service |
97d2fb |
Dyn32 (Ext_);
|
|
Packit Service |
97d2fb |
Verdef32 (Ext_);
|
|
Packit Service |
97d2fb |
Verdaux32 (Ext_);
|
|
Packit Service |
97d2fb |
Verneed32 (Ext_);
|
|
Packit Service |
97d2fb |
Vernaux32 (Ext_);
|
|
Packit Service |
97d2fb |
Syminfo32 (Ext_);
|
|
Packit Service |
97d2fb |
Move32 (Ext_);
|
|
Packit Service |
97d2fb |
Lib32 (Ext_);
|
|
Packit Service |
97d2fb |
auxv_t32 (Ext_);
|
|
Packit Service |
97d2fb |
Chdr32 (Ext_);
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
Ehdr64 (Ext_);
|
|
Packit Service |
97d2fb |
Phdr64 (Ext_);
|
|
Packit Service |
97d2fb |
Shdr64 (Ext_);
|
|
Packit Service |
97d2fb |
Sym64 (Ext_);
|
|
Packit Service |
97d2fb |
Rel64 (Ext_);
|
|
Packit Service |
97d2fb |
Rela64 (Ext_);
|
|
Packit Service |
97d2fb |
Note64 (Ext_);
|
|
Packit Service |
97d2fb |
Dyn64 (Ext_);
|
|
Packit Service |
97d2fb |
Verdef64 (Ext_);
|
|
Packit Service |
97d2fb |
Verdaux64 (Ext_);
|
|
Packit Service |
97d2fb |
Verneed64 (Ext_);
|
|
Packit Service |
97d2fb |
Vernaux64 (Ext_);
|
|
Packit Service |
97d2fb |
Syminfo64 (Ext_);
|
|
Packit Service |
97d2fb |
Move64 (Ext_);
|
|
Packit Service |
97d2fb |
Lib64 (Ext_);
|
|
Packit Service |
97d2fb |
auxv_t64 (Ext_);
|
|
Packit Service |
97d2fb |
Chdr64 (Ext_);
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
#undef START
|
|
Packit Service |
97d2fb |
#undef END
|
|
Packit Service |
97d2fb |
#undef TYPE_NAME
|
|
Packit Service |
97d2fb |
#undef TYPE_EXTRA
|
|
Packit Service |
97d2fb |
#undef TYPE_XLATE
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
#endif /* exttypes.h */
|