ldrELF64.h revision 101c8a4ba92c1c8640481d4e439b0297c95c287c
/* $Id$ */
/** @file
* IPRT - ELF 64-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_ldrELF64_h
#define ___internal_ldrELF64_h
#include "ldrELFCommon.h"
/*
* ELF 64 standard types.
*/
typedef uint64_t Elf64_Addr;
typedef uint16_t Elf64_Half;
typedef uint32_t Elf64_Word;
typedef int32_t Elf64_Sword;
typedef uint64_t Elf64_Xword;
typedef int64_t Elf64_Sxword;
/*
* Ensure type size correctness in accordance to ELF-64 Object File Format, Version 1.5 Draft 2, p2.
*/
/*
* ELF 64 non-standard types for convenience.
*/
typedef Elf64_Xword Elf64_Size;
typedef Elf64_Word Elf64_Hashelt;
/*
* ELF Header.
*/
typedef struct
{
} Elf64_Ehdr;
/*
* Section header.
*/
typedef struct
{
} Elf64_Shdr;
/*
* Program header.
*/
typedef struct
{
} Elf64_Phdr;
/*
* Note header.
*/
typedef struct
{
} Elf64_Nhdr;
/*
* Symbol table entry.
*/
typedef struct
{
unsigned char st_info; /* Type and binding attributes. */
unsigned char st_other; /* Reserved. */
} Elf64_Sym;
/*
* Relocations.
*/
typedef struct
{
} Elf64_Rel;
typedef struct
{
} Elf64_Rela;
/*
* Dynamic section entry.
* ".dynamic" section contains an array of this.
*/
typedef struct
{
union
{
} d_un;
} Elf64_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_ldrELF64_h */