Blame libelf/exttypes.h

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