130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef _LINUX_ELF_EM_H
230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define _LINUX_ELF_EM_H
330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/* These constants define the various ELF target machines */
530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_NONE		0
630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_M32		1
730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_SPARC	2
830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_386		3
930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_68K		4
1030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_88K		5
1130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_486		6	/* Perhaps disused */
1230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_860		7
1330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_MIPS		8	/* MIPS R3000 (officially, big-endian only) */
1430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng				/* Next two are historical and binaries and
1530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng				   modules of these types will be rejected by
1630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng				   Linux.  */
1730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_MIPS_RS3_LE	10	/* MIPS R3000 little-endian */
1830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_MIPS_RS4_BE	10	/* MIPS R4000 big-endian */
1930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
2030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_PARISC	15	/* HPPA */
2130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_SPARC32PLUS	18	/* Sun's "v8plus" */
2230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_PPC		20	/* PowerPC */
2330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_PPC64	21	 /* PowerPC64 */
2430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_SPU		23	/* Cell BE SPU */
25e87eaf040ab639e94ed0a58ff0eac68d1d38fb0aEd Heyl#define EM_ARM		40	/* ARM 32 bit */
2630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_SH		42	/* SuperH */
2730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_SPARCV9	43	/* SPARC v9 64-bit */
2830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_IA_64	50	/* HP/Intel IA-64 */
2930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_X86_64	62	/* AMD x86-64 */
3030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_S390		22	/* IBM S/390 */
3130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_CRIS		76	/* Axis Communications 32-bit embedded processor */
3230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_V850		87	/* NEC v850 */
3330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_M32R		88	/* Renesas M32R */
3430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_MN10300	89	/* Panasonic/MEI MN10300, AM33 */
3530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_BLACKFIN     106     /* ADI Blackfin Processor */
3630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_TI_C6000	140	/* TI C6X DSPs */
37e87eaf040ab639e94ed0a58ff0eac68d1d38fb0aEd Heyl#define EM_AARCH64	183	/* ARM 64 bit */
3830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_FRV		0x5441	/* Fujitsu FR-V */
3930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_AVR32	0x18ad	/* Atmel AVR32 */
4030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
4130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/*
4230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng * This is an interim value that we will use until the committee comes
4330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng * up with a final number.
4430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng */
4530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_ALPHA	0x9026
4630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
4730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/* Bogus old v850 magic number, used by old tools. */
4830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_CYGNUS_V850	0x9080
4930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/* Bogus old m32r magic number, used by old tools. */
5030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_CYGNUS_M32R	0x9041
5130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/* This is the old interim value for S/390 architecture */
5230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_S390_OLD	0xA390
5330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng/* Also Panasonic/MEI MN10300, AM33 */
5430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define EM_CYGNUS_MN10300 0xbeef
5530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
5630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
5730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif /* _LINUX_ELF_EM_H */
58