xref: /386bsd/usr/src/usr.bin/file/new/Magdir/elf (revision a2142627)
1#
2# ELF
3# Missing MIPS image type and flags
4#
5# Question marks on processor types flag "should not happen because the
6# byte order is wrong".  We have to check the byte order flag to see what
7# byte order all the other stuff in the header is in.
8#
90	string		\177ELF		ELF
10>4	byte		0		invalid class
11>4	byte		1		32-bit
12>4	byte		2		64-bit
13>5	byte		0		invalid byte order
14>5	byte		1		LSB
15>>16	leshort		0		unknown type
16>>16	leshort		1		relocatable
17>>16	leshort		2		executable
18>>16	leshort		3		dynamic lib
19>>16	leshort		4		core file
20>>18	leshort		0		unknown machine
21>>18	leshort		1		WE32100 and up
22>>18	leshort		2		SPARC?
23>>18	leshort		3		i386 (386 and up)
24>>18	leshort		4		M68000?
25>>18	leshort		5		M88000?
26>>18	leshort		7		i860
27>>20	lelong		1		Version 1
28>>36	lelong		1		MathCoPro/FPU/MAU Required
29>5	byte		2		MSB
30>>16	beshort		0		unknown type
31>>16	beshort		1		relocatable
32>>16	beshort		2		executable
33>>16	beshort		3		dynamic lib
34>>16	beshort		4		core file
35>>18	beshort		0		unknown machine
36>>18	beshort		1		WE32100 and up
37>>18	beshort		2		SPARC
38>>18	beshort		3		i386 (386 and up)?
39>>18	beshort		4		M68000
40>>18	beshort		5		M88000
41>>18	beshort		7		i860
42>>20	belong		1		Version 1
43>>36	belong		1		MathCoPro/FPU/MAU Required
44
45