Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: elf.h
/* This file defines standard ELF types, structures, and macros.
[0] Fix | Delete
Copyright (C) 1995-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _ELF_H
[18] Fix | Delete
#define _ELF_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
[22] Fix | Delete
__BEGIN_DECLS
[23] Fix | Delete
[24] Fix | Delete
/* Standard ELF types. */
[25] Fix | Delete
[26] Fix | Delete
#include <stdint.h>
[27] Fix | Delete
[28] Fix | Delete
/* Type for a 16-bit quantity. */
[29] Fix | Delete
typedef uint16_t Elf32_Half;
[30] Fix | Delete
typedef uint16_t Elf64_Half;
[31] Fix | Delete
[32] Fix | Delete
/* Types for signed and unsigned 32-bit quantities. */
[33] Fix | Delete
typedef uint32_t Elf32_Word;
[34] Fix | Delete
typedef int32_t Elf32_Sword;
[35] Fix | Delete
typedef uint32_t Elf64_Word;
[36] Fix | Delete
typedef int32_t Elf64_Sword;
[37] Fix | Delete
[38] Fix | Delete
/* Types for signed and unsigned 64-bit quantities. */
[39] Fix | Delete
typedef uint64_t Elf32_Xword;
[40] Fix | Delete
typedef int64_t Elf32_Sxword;
[41] Fix | Delete
typedef uint64_t Elf64_Xword;
[42] Fix | Delete
typedef int64_t Elf64_Sxword;
[43] Fix | Delete
[44] Fix | Delete
/* Type of addresses. */
[45] Fix | Delete
typedef uint32_t Elf32_Addr;
[46] Fix | Delete
typedef uint64_t Elf64_Addr;
[47] Fix | Delete
[48] Fix | Delete
/* Type of file offsets. */
[49] Fix | Delete
typedef uint32_t Elf32_Off;
[50] Fix | Delete
typedef uint64_t Elf64_Off;
[51] Fix | Delete
[52] Fix | Delete
/* Type for section indices, which are 16-bit quantities. */
[53] Fix | Delete
typedef uint16_t Elf32_Section;
[54] Fix | Delete
typedef uint16_t Elf64_Section;
[55] Fix | Delete
[56] Fix | Delete
/* Type for version symbol information. */
[57] Fix | Delete
typedef Elf32_Half Elf32_Versym;
[58] Fix | Delete
typedef Elf64_Half Elf64_Versym;
[59] Fix | Delete
[60] Fix | Delete
[61] Fix | Delete
/* The ELF file header. This appears at the start of every ELF file. */
[62] Fix | Delete
[63] Fix | Delete
#define EI_NIDENT (16)
[64] Fix | Delete
[65] Fix | Delete
typedef struct
[66] Fix | Delete
{
[67] Fix | Delete
unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
[68] Fix | Delete
Elf32_Half e_type; /* Object file type */
[69] Fix | Delete
Elf32_Half e_machine; /* Architecture */
[70] Fix | Delete
Elf32_Word e_version; /* Object file version */
[71] Fix | Delete
Elf32_Addr e_entry; /* Entry point virtual address */
[72] Fix | Delete
Elf32_Off e_phoff; /* Program header table file offset */
[73] Fix | Delete
Elf32_Off e_shoff; /* Section header table file offset */
[74] Fix | Delete
Elf32_Word e_flags; /* Processor-specific flags */
[75] Fix | Delete
Elf32_Half e_ehsize; /* ELF header size in bytes */
[76] Fix | Delete
Elf32_Half e_phentsize; /* Program header table entry size */
[77] Fix | Delete
Elf32_Half e_phnum; /* Program header table entry count */
[78] Fix | Delete
Elf32_Half e_shentsize; /* Section header table entry size */
[79] Fix | Delete
Elf32_Half e_shnum; /* Section header table entry count */
[80] Fix | Delete
Elf32_Half e_shstrndx; /* Section header string table index */
[81] Fix | Delete
} Elf32_Ehdr;
[82] Fix | Delete
[83] Fix | Delete
typedef struct
[84] Fix | Delete
{
[85] Fix | Delete
unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
[86] Fix | Delete
Elf64_Half e_type; /* Object file type */
[87] Fix | Delete
Elf64_Half e_machine; /* Architecture */
[88] Fix | Delete
Elf64_Word e_version; /* Object file version */
[89] Fix | Delete
Elf64_Addr e_entry; /* Entry point virtual address */
[90] Fix | Delete
Elf64_Off e_phoff; /* Program header table file offset */
[91] Fix | Delete
Elf64_Off e_shoff; /* Section header table file offset */
[92] Fix | Delete
Elf64_Word e_flags; /* Processor-specific flags */
[93] Fix | Delete
Elf64_Half e_ehsize; /* ELF header size in bytes */
[94] Fix | Delete
Elf64_Half e_phentsize; /* Program header table entry size */
[95] Fix | Delete
Elf64_Half e_phnum; /* Program header table entry count */
[96] Fix | Delete
Elf64_Half e_shentsize; /* Section header table entry size */
[97] Fix | Delete
Elf64_Half e_shnum; /* Section header table entry count */
[98] Fix | Delete
Elf64_Half e_shstrndx; /* Section header string table index */
[99] Fix | Delete
} Elf64_Ehdr;
[100] Fix | Delete
[101] Fix | Delete
/* Fields in the e_ident array. The EI_* macros are indices into the
[102] Fix | Delete
array. The macros under each EI_* macro are the values the byte
[103] Fix | Delete
may have. */
[104] Fix | Delete
[105] Fix | Delete
#define EI_MAG0 0 /* File identification byte 0 index */
[106] Fix | Delete
#define ELFMAG0 0x7f /* Magic number byte 0 */
[107] Fix | Delete
[108] Fix | Delete
#define EI_MAG1 1 /* File identification byte 1 index */
[109] Fix | Delete
#define ELFMAG1 'E' /* Magic number byte 1 */
[110] Fix | Delete
[111] Fix | Delete
#define EI_MAG2 2 /* File identification byte 2 index */
[112] Fix | Delete
#define ELFMAG2 'L' /* Magic number byte 2 */
[113] Fix | Delete
[114] Fix | Delete
#define EI_MAG3 3 /* File identification byte 3 index */
[115] Fix | Delete
#define ELFMAG3 'F' /* Magic number byte 3 */
[116] Fix | Delete
[117] Fix | Delete
/* Conglomeration of the identification bytes, for easy testing as a word. */
[118] Fix | Delete
#define ELFMAG "\177ELF"
[119] Fix | Delete
#define SELFMAG 4
[120] Fix | Delete
[121] Fix | Delete
#define EI_CLASS 4 /* File class byte index */
[122] Fix | Delete
#define ELFCLASSNONE 0 /* Invalid class */
[123] Fix | Delete
#define ELFCLASS32 1 /* 32-bit objects */
[124] Fix | Delete
#define ELFCLASS64 2 /* 64-bit objects */
[125] Fix | Delete
#define ELFCLASSNUM 3
[126] Fix | Delete
[127] Fix | Delete
#define EI_DATA 5 /* Data encoding byte index */
[128] Fix | Delete
#define ELFDATANONE 0 /* Invalid data encoding */
[129] Fix | Delete
#define ELFDATA2LSB 1 /* 2's complement, little endian */
[130] Fix | Delete
#define ELFDATA2MSB 2 /* 2's complement, big endian */
[131] Fix | Delete
#define ELFDATANUM 3
[132] Fix | Delete
[133] Fix | Delete
#define EI_VERSION 6 /* File version byte index */
[134] Fix | Delete
/* Value must be EV_CURRENT */
[135] Fix | Delete
[136] Fix | Delete
#define EI_OSABI 7 /* OS ABI identification */
[137] Fix | Delete
#define ELFOSABI_NONE 0 /* UNIX System V ABI */
[138] Fix | Delete
#define ELFOSABI_SYSV 0 /* Alias. */
[139] Fix | Delete
#define ELFOSABI_HPUX 1 /* HP-UX */
[140] Fix | Delete
#define ELFOSABI_NETBSD 2 /* NetBSD. */
[141] Fix | Delete
#define ELFOSABI_GNU 3 /* Object uses GNU ELF extensions. */
[142] Fix | Delete
#define ELFOSABI_LINUX ELFOSABI_GNU /* Compatibility alias. */
[143] Fix | Delete
#define ELFOSABI_SOLARIS 6 /* Sun Solaris. */
[144] Fix | Delete
#define ELFOSABI_AIX 7 /* IBM AIX. */
[145] Fix | Delete
#define ELFOSABI_IRIX 8 /* SGI Irix. */
[146] Fix | Delete
#define ELFOSABI_FREEBSD 9 /* FreeBSD. */
[147] Fix | Delete
#define ELFOSABI_TRU64 10 /* Compaq TRU64 UNIX. */
[148] Fix | Delete
#define ELFOSABI_MODESTO 11 /* Novell Modesto. */
[149] Fix | Delete
#define ELFOSABI_OPENBSD 12 /* OpenBSD. */
[150] Fix | Delete
#define ELFOSABI_ARM_AEABI 64 /* ARM EABI */
[151] Fix | Delete
#define ELFOSABI_ARM 97 /* ARM */
[152] Fix | Delete
#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
[153] Fix | Delete
[154] Fix | Delete
#define EI_ABIVERSION 8 /* ABI version */
[155] Fix | Delete
[156] Fix | Delete
#define EI_PAD 9 /* Byte index of padding bytes */
[157] Fix | Delete
[158] Fix | Delete
/* Legal values for e_type (object file type). */
[159] Fix | Delete
[160] Fix | Delete
#define ET_NONE 0 /* No file type */
[161] Fix | Delete
#define ET_REL 1 /* Relocatable file */
[162] Fix | Delete
#define ET_EXEC 2 /* Executable file */
[163] Fix | Delete
#define ET_DYN 3 /* Shared object file */
[164] Fix | Delete
#define ET_CORE 4 /* Core file */
[165] Fix | Delete
#define ET_NUM 5 /* Number of defined types */
[166] Fix | Delete
#define ET_LOOS 0xfe00 /* OS-specific range start */
[167] Fix | Delete
#define ET_HIOS 0xfeff /* OS-specific range end */
[168] Fix | Delete
#define ET_LOPROC 0xff00 /* Processor-specific range start */
[169] Fix | Delete
#define ET_HIPROC 0xffff /* Processor-specific range end */
[170] Fix | Delete
[171] Fix | Delete
/* Legal values for e_machine (architecture). */
[172] Fix | Delete
[173] Fix | Delete
#define EM_NONE 0 /* No machine */
[174] Fix | Delete
#define EM_M32 1 /* AT&T WE 32100 */
[175] Fix | Delete
#define EM_SPARC 2 /* SUN SPARC */
[176] Fix | Delete
#define EM_386 3 /* Intel 80386 */
[177] Fix | Delete
#define EM_68K 4 /* Motorola m68k family */
[178] Fix | Delete
#define EM_88K 5 /* Motorola m88k family */
[179] Fix | Delete
#define EM_IAMCU 6 /* Intel MCU */
[180] Fix | Delete
#define EM_860 7 /* Intel 80860 */
[181] Fix | Delete
#define EM_MIPS 8 /* MIPS R3000 big-endian */
[182] Fix | Delete
#define EM_S370 9 /* IBM System/370 */
[183] Fix | Delete
#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */
[184] Fix | Delete
/* reserved 11-14 */
[185] Fix | Delete
#define EM_PARISC 15 /* HPPA */
[186] Fix | Delete
/* reserved 16 */
[187] Fix | Delete
#define EM_VPP500 17 /* Fujitsu VPP500 */
[188] Fix | Delete
#define EM_SPARC32PLUS 18 /* Sun's "v8plus" */
[189] Fix | Delete
#define EM_960 19 /* Intel 80960 */
[190] Fix | Delete
#define EM_PPC 20 /* PowerPC */
[191] Fix | Delete
#define EM_PPC64 21 /* PowerPC 64-bit */
[192] Fix | Delete
#define EM_S390 22 /* IBM S390 */
[193] Fix | Delete
#define EM_SPU 23 /* IBM SPU/SPC */
[194] Fix | Delete
/* reserved 24-35 */
[195] Fix | Delete
#define EM_V800 36 /* NEC V800 series */
[196] Fix | Delete
#define EM_FR20 37 /* Fujitsu FR20 */
[197] Fix | Delete
#define EM_RH32 38 /* TRW RH-32 */
[198] Fix | Delete
#define EM_RCE 39 /* Motorola RCE */
[199] Fix | Delete
#define EM_ARM 40 /* ARM */
[200] Fix | Delete
#define EM_FAKE_ALPHA 41 /* Digital Alpha */
[201] Fix | Delete
#define EM_SH 42 /* Hitachi SH */
[202] Fix | Delete
#define EM_SPARCV9 43 /* SPARC v9 64-bit */
[203] Fix | Delete
#define EM_TRICORE 44 /* Siemens Tricore */
[204] Fix | Delete
#define EM_ARC 45 /* Argonaut RISC Core */
[205] Fix | Delete
#define EM_H8_300 46 /* Hitachi H8/300 */
[206] Fix | Delete
#define EM_H8_300H 47 /* Hitachi H8/300H */
[207] Fix | Delete
#define EM_H8S 48 /* Hitachi H8S */
[208] Fix | Delete
#define EM_H8_500 49 /* Hitachi H8/500 */
[209] Fix | Delete
#define EM_IA_64 50 /* Intel Merced */
[210] Fix | Delete
#define EM_MIPS_X 51 /* Stanford MIPS-X */
[211] Fix | Delete
#define EM_COLDFIRE 52 /* Motorola Coldfire */
[212] Fix | Delete
#define EM_68HC12 53 /* Motorola M68HC12 */
[213] Fix | Delete
#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator */
[214] Fix | Delete
#define EM_PCP 55 /* Siemens PCP */
[215] Fix | Delete
#define EM_NCPU 56 /* Sony nCPU embeeded RISC */
[216] Fix | Delete
#define EM_NDR1 57 /* Denso NDR1 microprocessor */
[217] Fix | Delete
#define EM_STARCORE 58 /* Motorola Start*Core processor */
[218] Fix | Delete
#define EM_ME16 59 /* Toyota ME16 processor */
[219] Fix | Delete
#define EM_ST100 60 /* STMicroelectronic ST100 processor */
[220] Fix | Delete
#define EM_TINYJ 61 /* Advanced Logic Corp. Tinyj emb.fam */
[221] Fix | Delete
#define EM_X86_64 62 /* AMD x86-64 architecture */
[222] Fix | Delete
#define EM_PDSP 63 /* Sony DSP Processor */
[223] Fix | Delete
#define EM_PDP10 64 /* Digital PDP-10 */
[224] Fix | Delete
#define EM_PDP11 65 /* Digital PDP-11 */
[225] Fix | Delete
#define EM_FX66 66 /* Siemens FX66 microcontroller */
[226] Fix | Delete
#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
[227] Fix | Delete
#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */
[228] Fix | Delete
#define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */
[229] Fix | Delete
#define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */
[230] Fix | Delete
#define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */
[231] Fix | Delete
#define EM_68HC05 72 /* Motorola MC68HC05 microcontroller */
[232] Fix | Delete
#define EM_SVX 73 /* Silicon Graphics SVx */
[233] Fix | Delete
#define EM_ST19 74 /* STMicroelectronics ST19 8 bit mc */
[234] Fix | Delete
#define EM_VAX 75 /* Digital VAX */
[235] Fix | Delete
#define EM_CRIS 76 /* Axis Communications 32-bit emb.proc */
[236] Fix | Delete
#define EM_JAVELIN 77 /* Infineon Technologies 32-bit emb.proc */
[237] Fix | Delete
#define EM_FIREPATH 78 /* Element 14 64-bit DSP Processor */
[238] Fix | Delete
#define EM_ZSP 79 /* LSI Logic 16-bit DSP Processor */
[239] Fix | Delete
#define EM_MMIX 80 /* Donald Knuth's educational 64-bit proc */
[240] Fix | Delete
#define EM_HUANY 81 /* Harvard University machine-independent object files */
[241] Fix | Delete
#define EM_PRISM 82 /* SiTera Prism */
[242] Fix | Delete
#define EM_AVR 83 /* Atmel AVR 8-bit microcontroller */
[243] Fix | Delete
#define EM_FR30 84 /* Fujitsu FR30 */
[244] Fix | Delete
#define EM_D10V 85 /* Mitsubishi D10V */
[245] Fix | Delete
#define EM_D30V 86 /* Mitsubishi D30V */
[246] Fix | Delete
#define EM_V850 87 /* NEC v850 */
[247] Fix | Delete
#define EM_M32R 88 /* Mitsubishi M32R */
[248] Fix | Delete
#define EM_MN10300 89 /* Matsushita MN10300 */
[249] Fix | Delete
#define EM_MN10200 90 /* Matsushita MN10200 */
[250] Fix | Delete
#define EM_PJ 91 /* picoJava */
[251] Fix | Delete
#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
[252] Fix | Delete
#define EM_ARC_COMPACT 93 /* ARC International ARCompact */
[253] Fix | Delete
#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
[254] Fix | Delete
#define EM_VIDEOCORE 95 /* Alphamosaic VideoCore */
[255] Fix | Delete
#define EM_TMM_GPP 96 /* Thompson Multimedia General Purpose Proc */
[256] Fix | Delete
#define EM_NS32K 97 /* National Semi. 32000 */
[257] Fix | Delete
#define EM_TPC 98 /* Tenor Network TPC */
[258] Fix | Delete
#define EM_SNP1K 99 /* Trebia SNP 1000 */
[259] Fix | Delete
#define EM_ST200 100 /* STMicroelectronics ST200 */
[260] Fix | Delete
#define EM_IP2K 101 /* Ubicom IP2xxx */
[261] Fix | Delete
#define EM_MAX 102 /* MAX processor */
[262] Fix | Delete
#define EM_CR 103 /* National Semi. CompactRISC */
[263] Fix | Delete
#define EM_F2MC16 104 /* Fujitsu F2MC16 */
[264] Fix | Delete
#define EM_MSP430 105 /* Texas Instruments msp430 */
[265] Fix | Delete
#define EM_BLACKFIN 106 /* Analog Devices Blackfin DSP */
[266] Fix | Delete
#define EM_SE_C33 107 /* Seiko Epson S1C33 family */
[267] Fix | Delete
#define EM_SEP 108 /* Sharp embedded microprocessor */
[268] Fix | Delete
#define EM_ARCA 109 /* Arca RISC */
[269] Fix | Delete
#define EM_UNICORE 110 /* PKU-Unity & MPRC Peking Uni. mc series */
[270] Fix | Delete
#define EM_EXCESS 111 /* eXcess configurable cpu */
[271] Fix | Delete
#define EM_DXP 112 /* Icera Semi. Deep Execution Processor */
[272] Fix | Delete
#define EM_ALTERA_NIOS2 113 /* Altera Nios II */
[273] Fix | Delete
#define EM_CRX 114 /* National Semi. CompactRISC CRX */
[274] Fix | Delete
#define EM_XGATE 115 /* Motorola XGATE */
[275] Fix | Delete
#define EM_C166 116 /* Infineon C16x/XC16x */
[276] Fix | Delete
#define EM_M16C 117 /* Renesas M16C */
[277] Fix | Delete
#define EM_DSPIC30F 118 /* Microchip Technology dsPIC30F */
[278] Fix | Delete
#define EM_CE 119 /* Freescale Communication Engine RISC */
[279] Fix | Delete
#define EM_M32C 120 /* Renesas M32C */
[280] Fix | Delete
/* reserved 121-130 */
[281] Fix | Delete
#define EM_TSK3000 131 /* Altium TSK3000 */
[282] Fix | Delete
#define EM_RS08 132 /* Freescale RS08 */
[283] Fix | Delete
#define EM_SHARC 133 /* Analog Devices SHARC family */
[284] Fix | Delete
#define EM_ECOG2 134 /* Cyan Technology eCOG2 */
[285] Fix | Delete
#define EM_SCORE7 135 /* Sunplus S+core7 RISC */
[286] Fix | Delete
#define EM_DSP24 136 /* New Japan Radio (NJR) 24-bit DSP */
[287] Fix | Delete
#define EM_VIDEOCORE3 137 /* Broadcom VideoCore III */
[288] Fix | Delete
#define EM_LATTICEMICO32 138 /* RISC for Lattice FPGA */
[289] Fix | Delete
#define EM_SE_C17 139 /* Seiko Epson C17 */
[290] Fix | Delete
#define EM_TI_C6000 140 /* Texas Instruments TMS320C6000 DSP */
[291] Fix | Delete
#define EM_TI_C2000 141 /* Texas Instruments TMS320C2000 DSP */
[292] Fix | Delete
#define EM_TI_C5500 142 /* Texas Instruments TMS320C55x DSP */
[293] Fix | Delete
#define EM_TI_ARP32 143 /* Texas Instruments App. Specific RISC */
[294] Fix | Delete
#define EM_TI_PRU 144 /* Texas Instruments Prog. Realtime Unit */
[295] Fix | Delete
/* reserved 145-159 */
[296] Fix | Delete
#define EM_MMDSP_PLUS 160 /* STMicroelectronics 64bit VLIW DSP */
[297] Fix | Delete
#define EM_CYPRESS_M8C 161 /* Cypress M8C */
[298] Fix | Delete
#define EM_R32C 162 /* Renesas R32C */
[299] Fix | Delete
#define EM_TRIMEDIA 163 /* NXP Semi. TriMedia */
[300] Fix | Delete
#define EM_QDSP6 164 /* QUALCOMM DSP6 */
[301] Fix | Delete
#define EM_8051 165 /* Intel 8051 and variants */
[302] Fix | Delete
#define EM_STXP7X 166 /* STMicroelectronics STxP7x */
[303] Fix | Delete
#define EM_NDS32 167 /* Andes Tech. compact code emb. RISC */
[304] Fix | Delete
#define EM_ECOG1X 168 /* Cyan Technology eCOG1X */
[305] Fix | Delete
#define EM_MAXQ30 169 /* Dallas Semi. MAXQ30 mc */
[306] Fix | Delete
#define EM_XIMO16 170 /* New Japan Radio (NJR) 16-bit DSP */
[307] Fix | Delete
#define EM_MANIK 171 /* M2000 Reconfigurable RISC */
[308] Fix | Delete
#define EM_CRAYNV2 172 /* Cray NV2 vector architecture */
[309] Fix | Delete
#define EM_RX 173 /* Renesas RX */
[310] Fix | Delete
#define EM_METAG 174 /* Imagination Tech. META */
[311] Fix | Delete
#define EM_MCST_ELBRUS 175 /* MCST Elbrus */
[312] Fix | Delete
#define EM_ECOG16 176 /* Cyan Technology eCOG16 */
[313] Fix | Delete
#define EM_CR16 177 /* National Semi. CompactRISC CR16 */
[314] Fix | Delete
#define EM_ETPU 178 /* Freescale Extended Time Processing Unit */
[315] Fix | Delete
#define EM_SLE9X 179 /* Infineon Tech. SLE9X */
[316] Fix | Delete
#define EM_L10M 180 /* Intel L10M */
[317] Fix | Delete
#define EM_K10M 181 /* Intel K10M */
[318] Fix | Delete
/* reserved 182 */
[319] Fix | Delete
#define EM_AARCH64 183 /* ARM AARCH64 */
[320] Fix | Delete
/* reserved 184 */
[321] Fix | Delete
#define EM_AVR32 185 /* Amtel 32-bit microprocessor */
[322] Fix | Delete
#define EM_STM8 186 /* STMicroelectronics STM8 */
[323] Fix | Delete
#define EM_TILE64 187 /* Tileta TILE64 */
[324] Fix | Delete
#define EM_TILEPRO 188 /* Tilera TILEPro */
[325] Fix | Delete
#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */
[326] Fix | Delete
#define EM_CUDA 190 /* NVIDIA CUDA */
[327] Fix | Delete
#define EM_TILEGX 191 /* Tilera TILE-Gx */
[328] Fix | Delete
#define EM_CLOUDSHIELD 192 /* CloudShield */
[329] Fix | Delete
#define EM_COREA_1ST 193 /* KIPO-KAIST Core-A 1st gen. */
[330] Fix | Delete
#define EM_COREA_2ND 194 /* KIPO-KAIST Core-A 2nd gen. */
[331] Fix | Delete
#define EM_ARC_COMPACT2 195 /* Synopsys ARCompact V2 */
[332] Fix | Delete
#define EM_OPEN8 196 /* Open8 RISC */
[333] Fix | Delete
#define EM_RL78 197 /* Renesas RL78 */
[334] Fix | Delete
#define EM_VIDEOCORE5 198 /* Broadcom VideoCore V */
[335] Fix | Delete
#define EM_78KOR 199 /* Renesas 78KOR */
[336] Fix | Delete
#define EM_56800EX 200 /* Freescale 56800EX DSC */
[337] Fix | Delete
#define EM_BA1 201 /* Beyond BA1 */
[338] Fix | Delete
#define EM_BA2 202 /* Beyond BA2 */
[339] Fix | Delete
#define EM_XCORE 203 /* XMOS xCORE */
[340] Fix | Delete
#define EM_MCHP_PIC 204 /* Microchip 8-bit PIC(r) */
[341] Fix | Delete
/* reserved 205-209 */
[342] Fix | Delete
#define EM_KM32 210 /* KM211 KM32 */
[343] Fix | Delete
#define EM_KMX32 211 /* KM211 KMX32 */
[344] Fix | Delete
#define EM_EMX16 212 /* KM211 KMX16 */
[345] Fix | Delete
#define EM_EMX8 213 /* KM211 KMX8 */
[346] Fix | Delete
#define EM_KVARC 214 /* KM211 KVARC */
[347] Fix | Delete
#define EM_CDP 215 /* Paneve CDP */
[348] Fix | Delete
#define EM_COGE 216 /* Cognitive Smart Memory Processor */
[349] Fix | Delete
#define EM_COOL 217 /* Bluechip CoolEngine */
[350] Fix | Delete
#define EM_NORC 218 /* Nanoradio Optimized RISC */
[351] Fix | Delete
#define EM_CSR_KALIMBA 219 /* CSR Kalimba */
[352] Fix | Delete
#define EM_Z80 220 /* Zilog Z80 */
[353] Fix | Delete
#define EM_VISIUM 221 /* Controls and Data Services VISIUMcore */
[354] Fix | Delete
#define EM_FT32 222 /* FTDI Chip FT32 */
[355] Fix | Delete
#define EM_MOXIE 223 /* Moxie processor */
[356] Fix | Delete
#define EM_AMDGPU 224 /* AMD GPU */
[357] Fix | Delete
/* reserved 225-242 */
[358] Fix | Delete
#define EM_RISCV 243 /* RISC-V */
[359] Fix | Delete
[360] Fix | Delete
#define EM_BPF 247 /* Linux BPF -- in-kernel virtual machine */
[361] Fix | Delete
[362] Fix | Delete
#define EM_NUM 248
[363] Fix | Delete
[364] Fix | Delete
/* Old spellings/synonyms. */
[365] Fix | Delete
[366] Fix | Delete
#define EM_ARC_A5 EM_ARC_COMPACT
[367] Fix | Delete
[368] Fix | Delete
/* If it is necessary to assign new unofficial EM_* values, please
[369] Fix | Delete
pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the
[370] Fix | Delete
chances of collision with official or non-GNU unofficial values. */
[371] Fix | Delete
[372] Fix | Delete
#define EM_ALPHA 0x9026
[373] Fix | Delete
[374] Fix | Delete
/* Legal values for e_version (version). */
[375] Fix | Delete
[376] Fix | Delete
#define EV_NONE 0 /* Invalid ELF version */
[377] Fix | Delete
#define EV_CURRENT 1 /* Current version */
[378] Fix | Delete
#define EV_NUM 2
[379] Fix | Delete
[380] Fix | Delete
/* Section header. */
[381] Fix | Delete
[382] Fix | Delete
typedef struct
[383] Fix | Delete
{
[384] Fix | Delete
Elf32_Word sh_name; /* Section name (string tbl index) */
[385] Fix | Delete
Elf32_Word sh_type; /* Section type */
[386] Fix | Delete
Elf32_Word sh_flags; /* Section flags */
[387] Fix | Delete
Elf32_Addr sh_addr; /* Section virtual addr at execution */
[388] Fix | Delete
Elf32_Off sh_offset; /* Section file offset */
[389] Fix | Delete
Elf32_Word sh_size; /* Section size in bytes */
[390] Fix | Delete
Elf32_Word sh_link; /* Link to another section */
[391] Fix | Delete
Elf32_Word sh_info; /* Additional section information */
[392] Fix | Delete
Elf32_Word sh_addralign; /* Section alignment */
[393] Fix | Delete
Elf32_Word sh_entsize; /* Entry size if section holds table */
[394] Fix | Delete
} Elf32_Shdr;
[395] Fix | Delete
[396] Fix | Delete
typedef struct
[397] Fix | Delete
{
[398] Fix | Delete
Elf64_Word sh_name; /* Section name (string tbl index) */
[399] Fix | Delete
Elf64_Word sh_type; /* Section type */
[400] Fix | Delete
Elf64_Xword sh_flags; /* Section flags */
[401] Fix | Delete
Elf64_Addr sh_addr; /* Section virtual addr at execution */
[402] Fix | Delete
Elf64_Off sh_offset; /* Section file offset */
[403] Fix | Delete
Elf64_Xword sh_size; /* Section size in bytes */
[404] Fix | Delete
Elf64_Word sh_link; /* Link to another section */
[405] Fix | Delete
Elf64_Word sh_info; /* Additional section information */
[406] Fix | Delete
Elf64_Xword sh_addralign; /* Section alignment */
[407] Fix | Delete
Elf64_Xword sh_entsize; /* Entry size if section holds table */
[408] Fix | Delete
} Elf64_Shdr;
[409] Fix | Delete
[410] Fix | Delete
/* Special section indices. */
[411] Fix | Delete
[412] Fix | Delete
#define SHN_UNDEF 0 /* Undefined section */
[413] Fix | Delete
#define SHN_LORESERVE 0xff00 /* Start of reserved indices */
[414] Fix | Delete
#define SHN_LOPROC 0xff00 /* Start of processor-specific */
[415] Fix | Delete
#define SHN_BEFORE 0xff00 /* Order section before all others
[416] Fix | Delete
(Solaris). */
[417] Fix | Delete
#define SHN_AFTER 0xff01 /* Order section after all others
[418] Fix | Delete
(Solaris). */
[419] Fix | Delete
#define SHN_HIPROC 0xff1f /* End of processor-specific */
[420] Fix | Delete
#define SHN_LOOS 0xff20 /* Start of OS-specific */
[421] Fix | Delete
#define SHN_HIOS 0xff3f /* End of OS-specific */
[422] Fix | Delete
#define SHN_ABS 0xfff1 /* Associated symbol is absolute */
[423] Fix | Delete
#define SHN_COMMON 0xfff2 /* Associated symbol is common */
[424] Fix | Delete
#define SHN_XINDEX 0xffff /* Index is in extra table. */
[425] Fix | Delete
#define SHN_HIRESERVE 0xffff /* End of reserved indices */
[426] Fix | Delete
[427] Fix | Delete
/* Legal values for sh_type (section type). */
[428] Fix | Delete
[429] Fix | Delete
#define SHT_NULL 0 /* Section header table entry unused */
[430] Fix | Delete
#define SHT_PROGBITS 1 /* Program data */
[431] Fix | Delete
#define SHT_SYMTAB 2 /* Symbol table */
[432] Fix | Delete
#define SHT_STRTAB 3 /* String table */
[433] Fix | Delete
#define SHT_RELA 4 /* Relocation entries with addends */
[434] Fix | Delete
#define SHT_HASH 5 /* Symbol hash table */
[435] Fix | Delete
#define SHT_DYNAMIC 6 /* Dynamic linking information */
[436] Fix | Delete
#define SHT_NOTE 7 /* Notes */
[437] Fix | Delete
#define SHT_NOBITS 8 /* Program space with no data (bss) */
[438] Fix | Delete
#define SHT_REL 9 /* Relocation entries, no addends */
[439] Fix | Delete
#define SHT_SHLIB 10 /* Reserved */
[440] Fix | Delete
#define SHT_DYNSYM 11 /* Dynamic linker symbol table */
[441] Fix | Delete
#define SHT_INIT_ARRAY 14 /* Array of constructors */
[442] Fix | Delete
#define SHT_FINI_ARRAY 15 /* Array of destructors */
[443] Fix | Delete
#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
[444] Fix | Delete
#define SHT_GROUP 17 /* Section group */
[445] Fix | Delete
#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
[446] Fix | Delete
#define SHT_NUM 19 /* Number of defined types. */
[447] Fix | Delete
#define SHT_LOOS 0x60000000 /* Start OS-specific. */
[448] Fix | Delete
#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */
[449] Fix | Delete
#define SHT_GNU_HASH 0x6ffffff6 /* GNU-style hash table. */
[450] Fix | Delete
#define SHT_GNU_LIBLIST 0x6ffffff7 /* Prelink library list */
[451] Fix | Delete
#define SHT_CHECKSUM 0x6ffffff8 /* Checksum for DSO content. */
[452] Fix | Delete
#define SHT_LOSUNW 0x6ffffffa /* Sun-specific low bound. */
[453] Fix | Delete
#define SHT_SUNW_move 0x6ffffffa
[454] Fix | Delete
#define SHT_SUNW_COMDAT 0x6ffffffb
[455] Fix | Delete
#define SHT_SUNW_syminfo 0x6ffffffc
[456] Fix | Delete
#define SHT_GNU_verdef 0x6ffffffd /* Version definition section. */
[457] Fix | Delete
#define SHT_GNU_verneed 0x6ffffffe /* Version needs section. */
[458] Fix | Delete
#define SHT_GNU_versym 0x6fffffff /* Version symbol table. */
[459] Fix | Delete
#define SHT_HISUNW 0x6fffffff /* Sun-specific high bound. */
[460] Fix | Delete
#define SHT_HIOS 0x6fffffff /* End OS-specific type */
[461] Fix | Delete
#define SHT_LOPROC 0x70000000 /* Start of processor-specific */
[462] Fix | Delete
#define SHT_HIPROC 0x7fffffff /* End of processor-specific */
[463] Fix | Delete
#define SHT_LOUSER 0x80000000 /* Start of application-specific */
[464] Fix | Delete
#define SHT_HIUSER 0x8fffffff /* End of application-specific */
[465] Fix | Delete
[466] Fix | Delete
/* Legal values for sh_flags (section flags). */
[467] Fix | Delete
[468] Fix | Delete
#define SHF_WRITE (1 << 0) /* Writable */
[469] Fix | Delete
#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */
[470] Fix | Delete
#define SHF_EXECINSTR (1 << 2) /* Executable */
[471] Fix | Delete
#define SHF_MERGE (1 << 4) /* Might be merged */
[472] Fix | Delete
#define SHF_STRINGS (1 << 5) /* Contains nul-terminated strings */
[473] Fix | Delete
#define SHF_INFO_LINK (1 << 6) /* `sh_info' contains SHT index */
[474] Fix | Delete
#define SHF_LINK_ORDER (1 << 7) /* Preserve order after combining */
[475] Fix | Delete
#define SHF_OS_NONCONFORMING (1 << 8) /* Non-standard OS specific handling
[476] Fix | Delete
required */
[477] Fix | Delete
#define SHF_GROUP (1 << 9) /* Section is member of a group. */
[478] Fix | Delete
#define SHF_TLS (1 << 10) /* Section hold thread-local data. */
[479] Fix | Delete
#define SHF_COMPRESSED (1 << 11) /* Section with compressed data. */
[480] Fix | Delete
#define SHF_MASKOS 0x0ff00000 /* OS-specific. */
[481] Fix | Delete
#define SHF_MASKPROC 0xf0000000 /* Processor-specific */
[482] Fix | Delete
#define SHF_ORDERED (1 << 30) /* Special ordering requirement
[483] Fix | Delete
(Solaris). */
[484] Fix | Delete
#define SHF_EXCLUDE (1U << 31) /* Section is excluded unless
[485] Fix | Delete
referenced or allocated (Solaris).*/
[486] Fix | Delete
[487] Fix | Delete
/* Section compression header. Used when SHF_COMPRESSED is set. */
[488] Fix | Delete
[489] Fix | Delete
typedef struct
[490] Fix | Delete
{
[491] Fix | Delete
Elf32_Word ch_type; /* Compression format. */
[492] Fix | Delete
Elf32_Word ch_size; /* Uncompressed data size. */
[493] Fix | Delete
Elf32_Word ch_addralign; /* Uncompressed data alignment. */
[494] Fix | Delete
} Elf32_Chdr;
[495] Fix | Delete
[496] Fix | Delete
typedef struct
[497] Fix | Delete
{
[498] Fix | Delete
Elf64_Word ch_type; /* Compression format. */
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function