174462Salfred/*- 214123Speter * Copyright (c) 2012 Olivier Houchard <cognet@FreeBSD.org> 314123Speter * Copyright (c) 2012 Baptiste Daroussin <bapt@FreeBSD.org> 414123Speter * All rights reserved. 514123Speter * 614123Speter * Redistribution and use in source and binary forms, with or without 714123Speter * modification, are permitted provided that the following conditions 814123Speter * are met: 914123Speter * 1. Redistributions of source code must retain the above copyright 1014123Speter * notice, this list of conditions and the following disclaimer. 1114123Speter * 2. Redistributions in binary form must reproduce the above copyright 1214123Speter * notice, this list of conditions and the following disclaimer in the 1314123Speter * documentation and/or other materials provided with the distribution. 1414123Speter * 1514123Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1614123Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1714123Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1814123Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1914123Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2014123Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2114123Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2214123Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2314123Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2414123Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2514123Speter * SUCH DAMAGE. 2614123Speter * 2714123Speter * $FreeBSD$ 2814123Speter */ 2914123Speter 3014123Speter#ifndef ELF_TABLES_H_ 3114123Speter#define ELF_TABLES_H_ 3214123Speterstruct _elf_corres { 3314123Speter int elf_nb; 34141580Sru const char *string; 3514123Speter}; 36173281Smatteo 3715096Smppstatic struct _elf_corres mach_corres[] = { 3814123Speter { EM_386, "x86" }, 3914123Speter { EM_AMD64, "x86" }, 4015096Smpp { EM_ARM, "arm" }, 4114123Speter { EM_MIPS, "mips" }, 4214123Speter { EM_PPC, "powerpc" }, 4368965Sru { EM_PPC64, "powerpc" }, 4474462Salfred { EM_SPARCV9, "sparc64" }, 4574462Salfred { EM_IA_64, "ia64" }, 46173281Smatteo { -1, NULL }, 47168324Smatteo}; 4814123Speter 4974462Salfredstatic struct _elf_corres wordsize_corres[] = { 5074462Salfred { ELFCLASS32, "32" }, 5199968Scharnier { ELFCLASS64, "64" }, 5274462Salfred { -1, NULL}, 5374462Salfred}; 5474462Salfred 5574462Salfredstatic struct _elf_corres endian_corres[] = { 5674462Salfred { ELFDATA2MSB, "eb" }, 5714123Speter { ELFDATA2LSB, "el" }, 5874462Salfred { -1, NULL} 5974462Salfred}; 6030376Scharnier 6114123Speter#ifndef EF_ARM_NEW_ABI 6274462Salfred#define EF_ARM_NEW_ABI 0x00000080UL 6374462Salfred#endif 6474462Salfred#ifndef EF_ARM_VFP_FLOAT 6574462Salfred#define EF_ARM_VFP_FLOAT 0x00000400UL 6674462Salfred#endif 6774462Salfred#ifndef EF_MIPS_ABI 6874462Salfred#define EF_MIPS_ABI 0x0000f000 6974462Salfred#endif 7074462Salfred#define E_MIPS_ABI_O32 0x00001000 7174462Salfred#define E_MIPS_ABI_N32 0x00000020 7274462Salfred 7374462Salfred#define NT_VERSION 1 7474462Salfred#define NT_ARCH 2 7514123Speter 7614123Speter#endif /* ELF_TABLES_H_ */ 7774462Salfred