ldrELF64.h revision c58f1213e628a545081c70e26c6b67a841cff880
/* $Id$ */
/** @file
* IPRT - ELF 64-bit header.
*/
/*
* Copyright (C) 2011 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.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#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 */