ldrELF32.h revision 101c8a4ba92c1c8640481d4e439b0297c95c287c
/* $Id$ */
/** @file
* IPRT - ELF 32-bit header.
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___internal_ldrELF32_h
#define ___internal_ldrELF32_h
#include "ldrELFCommon.h"
/*
* ELF 32 standard types.
*/
typedef uint32_t Elf32_Addr;
typedef uint16_t Elf32_Half;
typedef int32_t Elf32_Sword;
typedef uint32_t Elf32_Word;
/*
* Ensure type size correctness in accordance to .
* Portable Format Specification (for ELF), Version 1.1, fig 1-2. .
*/
/*
* ELF 32 non-standard types for convenience.
*/
typedef Elf32_Word Elf32_Size;
typedef Elf32_Word Elf32_Hashelt;
/*
* ELF header.
*/
typedef struct
{
} Elf32_Ehdr;
/*
* Section header.
*/
typedef struct
{
} Elf32_Shdr;
/*
* Program header.
*/
typedef struct
{
} Elf32_Phdr;
/*
* Note header.
*/
typedef struct
{
} Elf32_Nhdr;
/*
* Symbol table entry.
*/
typedef struct
{
unsigned char st_info; /* Type and binding attributes. */
unsigned char st_other; /* Reserved. */
} Elf32_Sym;
/*
* Relocations.
*/
typedef struct
{
} Elf32_Rel;
typedef struct
{
} Elf32_Rela;
/*
* Dynamic section entry.
* ".dynamic" section contains an array of this.
*/
typedef struct
{
union
{
} d_un;
} Elf32_Dyn;
/*
* Helper macros.
*/
/** The symbol's type. */
/** The symbol's binding. */
/** Make st_info. given binding and type. */
/** Relocation type. */
/** Relocation symbol index. */
/** Make r_info given the symbol index and type. */
#endif /* ___internal_ldrELF32_h */