head	1.26;
access;
symbols
	perseant-exfatfs-base-20250801:1.26
	perseant-exfatfs-base-20240630:1.26
	perseant-exfatfs:1.26.0.46
	perseant-exfatfs-base:1.26
	cjep_sun2x:1.26.0.44
	cjep_sun2x-base:1.26
	cjep_staticlib_x-base1:1.26
	cjep_staticlib_x:1.26.0.42
	cjep_staticlib_x-base:1.26
	phil-wifi-20200421:1.26
	phil-wifi-20200411:1.26
	phil-wifi-20200406:1.26
	pgoyette-compat-merge-20190127:1.26
	pgoyette-compat-20190127:1.26
	pgoyette-compat-20190118:1.26
	pgoyette-compat-1226:1.26
	pgoyette-compat-1126:1.26
	pgoyette-compat-1020:1.26
	pgoyette-compat-0930:1.26
	pgoyette-compat-0906:1.26
	pgoyette-compat-0728:1.26
	pgoyette-compat-0625:1.26
	pgoyette-compat-0521:1.26
	pgoyette-compat-0502:1.26
	pgoyette-compat-0422:1.26
	pgoyette-compat-0415:1.26
	pgoyette-compat-0407:1.26
	pgoyette-compat-0330:1.26
	pgoyette-compat-0322:1.26
	pgoyette-compat-0315:1.26
	pgoyette-compat:1.26.0.40
	pgoyette-compat-base:1.26
	perseant-stdc-iso10646:1.26.0.38
	perseant-stdc-iso10646-base:1.26
	prg-localcount2-base3:1.26
	prg-localcount2-base2:1.26
	prg-localcount2-base1:1.26
	prg-localcount2:1.26.0.36
	prg-localcount2-base:1.26
	pgoyette-localcount-20170426:1.26
	bouyer-socketcan-base1:1.26
	pgoyette-localcount-20170320:1.26
	bouyer-socketcan:1.26.0.34
	bouyer-socketcan-base:1.26
	pgoyette-localcount-20170107:1.26
	pgoyette-localcount-20161104:1.26
	localcount-20160914:1.26
	pgoyette-localcount-20160806:1.26
	pgoyette-localcount-20160726:1.26
	pgoyette-localcount:1.26.0.32
	pgoyette-localcount-base:1.26
	netbsd-5-2-3-RELEASE:1.26
	netbsd-5-1-5-RELEASE:1.26
	yamt-pagecache-base9:1.26
	yamt-pagecache-tag8:1.26
	tls-earlyentropy:1.26.0.28
	tls-earlyentropy-base:1.26
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.26
	riastradh-drm2-base3:1.26
	netbsd-5-2-2-RELEASE:1.26
	netbsd-5-1-4-RELEASE:1.26
	netbsd-5-2-1-RELEASE:1.26
	netbsd-5-1-3-RELEASE:1.26
	agc-symver:1.26.0.30
	agc-symver-base:1.26
	tls-maxphys-base:1.26
	yamt-pagecache-base8:1.26
	netbsd-5-2:1.26.0.26
	yamt-pagecache-base7:1.26
	netbsd-5-2-RELEASE:1.26
	netbsd-5-2-RC1:1.26
	yamt-pagecache-base6:1.26
	yamt-pagecache-base5:1.26
	yamt-pagecache-base4:1.26
	netbsd-5-1-2-RELEASE:1.26
	netbsd-5-1-1-RELEASE:1.26
	yamt-pagecache-base3:1.26
	yamt-pagecache-base2:1.26
	yamt-pagecache:1.26.0.24
	yamt-pagecache-base:1.26
	bouyer-quota2-nbase:1.26
	bouyer-quota2:1.26.0.22
	bouyer-quota2-base:1.26
	matt-nb5-pq3:1.26.0.20
	matt-nb5-pq3-base:1.26
	netbsd-5-1:1.26.0.18
	netbsd-5-1-RELEASE:1.26
	netbsd-5-1-RC4:1.26
	netbsd-5-1-RC3:1.26
	netbsd-5-1-RC2:1.26
	netbsd-5-1-RC1:1.26
	netbsd-5-0-2-RELEASE:1.26
	netbsd-5-0-1-RELEASE:1.26
	jym-xensuspend-nbase:1.26
	netbsd-5-0:1.26.0.16
	netbsd-5-0-RELEASE:1.26
	netbsd-5-0-RC4:1.26
	netbsd-5-0-RC3:1.26
	netbsd-5-0-RC2:1.26
	jym-xensuspend:1.26.0.14
	jym-xensuspend-base:1.26
	netbsd-5-0-RC1:1.26
	netbsd-5:1.26.0.12
	netbsd-5-base:1.26
	mjf-devfs2:1.26.0.10
	mjf-devfs2-base:1.26
	yamt-pf42-base4:1.26
	yamt-pf42-base3:1.26
	hpcarm-cleanup-nbase:1.26
	yamt-pf42-base2:1.26
	yamt-pf42:1.26.0.8
	yamt-pf42-base:1.26
	keiichi-mipv6-nbase:1.26
	keiichi-mipv6:1.26.0.6
	keiichi-mipv6-base:1.26
	cube-autoconf:1.26.0.4
	cube-autoconf-base:1.26
	hpcarm-cleanup:1.26.0.2
	hpcarm-cleanup-base:1.26
	netbsd-1-6-PATCH002-RELEASE:1.24
	netbsd-1-6-PATCH002:1.24
	netbsd-1-6-PATCH002-RC4:1.24
	netbsd-1-6-PATCH002-RC3:1.24
	netbsd-1-6-PATCH002-RC2:1.24
	netbsd-1-6-PATCH002-RC1:1.24
	netbsd-1-6-PATCH001:1.24
	netbsd-1-6-PATCH001-RELEASE:1.24
	netbsd-1-6-PATCH001-RC3:1.24
	netbsd-1-6-PATCH001-RC2:1.24
	netbsd-1-6-PATCH001-RC1:1.24
	fvdl_fs64_base:1.24
	netbsd-1-6-RELEASE:1.24
	netbsd-1-6-RC3:1.24
	netbsd-1-6-RC2:1.24
	netbsd-1-6-RC1:1.24
	FILE3_39:1.1.1.8
	netbsd-1-6:1.24.0.2
	netbsd-1-6-base:1.24
	FILE3_38:1.1.1.8
	netbsd-1-5-PATCH003:1.14.6.1
	FILE3_37:1.1.1.7
	netbsd-1-5-PATCH002:1.14.6.1
	FILE3_36:1.1.1.6
	netbsd-1-5-PATCH001:1.14.6.1
	FILE3_34:1.1.1.5
	FILE3_33:1.1.1.4
	netbsd-1-5-RELEASE:1.14.6.1
	netbsd-1-5-BETA2:1.14.6.1
	netbsd-1-5-BETA:1.14.6.1
	FILE3_32:1.1.1.3
	netbsd-1-4-PATCH003:1.11
	netbsd-1-5-ALPHA2:1.14
	netbsd-1-5:1.14.0.6
	netbsd-1-5-base:1.14
	minoura-xpg4dl-base:1.14
	minoura-xpg4dl:1.14.0.4
	FILE3_31:1.1.1.2
	netbsd-1-4-PATCH002:1.11
	wrstuden-devbsize-19991221:1.14
	wrstuden-devbsize:1.13.0.2
	wrstuden-devbsize-base:1.14
	comdex-fall-1999:1.14.0.2
	comdex-fall-1999-base:1.14
	FILE3_28:1.1.1.2
	netbsd-1-4-PATCH001:1.11
	netbsd-1-4-RELEASE:1.11
	netbsd-1-4:1.11.0.2
	netbsd-1-4-base:1.11
	netbsd-1-3-PATCH003:1.9
	netbsd-1-3-PATCH003-CANDIDATE2:1.9
	netbsd-1-3-PATCH003-CANDIDATE1:1.9
	netbsd-1-3-PATCH003-CANDIDATE0:1.9
	FILE3_26:1.1.1.1
	CHRISTOS:1.1.1
	FILE:1.1.1
	netbsd-1-3-PATCH002:1.9
	netbsd-1-3-PATCH001:1.9
	netbsd-1-3-RELEASE:1.9
	netbsd-1-3-BETA:1.9
	netbsd-1-3:1.9.0.2
	netbsd-1-3-base:1.9
	netbsd-1-2-PATCH001:1.4
	netbsd-1-2-RELEASE:1.4
	netbsd-1-2-BETA:1.4
	netbsd-1-2:1.4.0.4
	netbsd-1-2-base:1.4
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3
	netbsd-1-0-PATCH06:1.1
	netbsd-1-0-PATCH05:1.1
	netbsd-1-0-PATCH04:1.1
	netbsd-1-0-PATCH03:1.1
	netbsd-1-0-PATCH02:1.1
	netbsd-1-0-PATCH1:1.1
	netbsd-1-0-PATCH0:1.1
	netbsd-1-0-RELEASE:1.1
	netbsd-1-0:1.1.0.4
	netbsd-1-0-base:1.1
	netbsd-0-9-RELEASE:1.1
	netbsd-0-9-BETA:1.1
	netbsd-0-9-ALPHA2:1.1
	netbsd-0-9-ALPHA:1.1
	netbsd-0-9:1.1.0.2
	netbsd-0-9-base:1.1;
locks; strict;
comment	@# @;


1.26
date	2003.03.26.00.05.27;	author pooka;	state dead;
branches;
next	1.25;

1.25
date	2003.01.20.01.16.01;	author simonb;	state Exp;
branches;
next	1.24;

1.24
date	2002.05.18.07.00.49;	author pooka;	state Exp;
branches;
next	1.23;

1.23
date	2002.03.22.00.19.57;	author fredette;	state Exp;
branches;
next	1.22;

1.22
date	2001.12.09.23.21.08;	author thorpej;	state Exp;
branches;
next	1.21;

1.21
date	2001.07.22.22.53.04;	author pooka;	state Exp;
branches;
next	1.20;

1.20
date	2001.06.19.09.27.24;	author fvdl;	state Exp;
branches;
next	1.19;

1.19
date	2001.03.17.11.21.52;	author pooka;	state Exp;
branches;
next	1.18;

1.18
date	2001.02.13.14.35.21;	author bjh21;	state Exp;
branches;
next	1.17;

1.17
date	2000.11.23.23.21.15;	author pooka;	state Exp;
branches;
next	1.16;

1.16
date	2000.08.13.06.33.03;	author jeffs;	state Exp;
branches;
next	1.15;

1.15
date	2000.08.10.19.12.40;	author jeffs;	state Exp;
branches;
next	1.14;

1.14
date	99.11.01.17.39.28;	author christos;	state Exp;
branches
	1.14.6.1;
next	1.13;

1.13
date	99.09.12.16.38.16;	author itojun;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	99.08.21.00.28.09;	author matt;	state Exp;
branches;
next	1.11;

1.11
date	98.09.20.15.27.18;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	98.08.12.17.48.35;	author matt;	state Exp;
branches;
next	1.9;

1.9
date	97.05.17.12.36.22;	author jtk;	state Exp;
branches;
next	1.8;

1.8
date	97.01.27.17.58.20;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	96.10.05.20.20.39;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	96.09.26.19.51.28;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	96.09.26.19.37.15;	author thorpej;	state Exp;
branches;
next	1.4;

1.4
date	95.10.27.23.33.35;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	95.04.28.19.24.17;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	95.03.25.22.38.40;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	93.06.10.00.58.00;	author jtc;	state Exp;
branches
	1.1.1.1;
next	;

1.14.6.1
date	2000.09.30.06.20.48;	author simonb;	state Exp;
branches;
next	;

1.13.2.1
date	99.12.27.18.36.53;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	98.09.19.18.08.13;	author christos;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	99.11.01.17.30.43;	author christos;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2000.09.22.16.01.07;	author pooka;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2000.11.23.23.07.34;	author pooka;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2001.03.17.11.07.01;	author pooka;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2001.07.22.22.32.02;	author pooka;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2001.09.09.10.39.01;	author pooka;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2002.05.18.06.45.58;	author pooka;	state Exp;
branches;
next	;


desc
@@


1.26
log
@use file from dist
@
text
@
#------------------------------------------------------------------------------
# elf:  file(1) magic for ELF executables
#
# We have to check the byte order flag to see what byte order all the
# other stuff in the header is in.
#
# What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
#
# updated by Daniel Quinlan (quinlan@@yggdrasil.com)
0	string		\177ELF		ELF
>4	byte		0		invalid class
>4	byte		1		32-bit
# only for MIPS - in the future, the ABI field of e_flags should be used.
>>18	beshort		8
>>18	beshort		10
>>>36   belong          &0x20           N32
>4	byte		2		64-bit
>5	byte		0		invalid byte order
>5	byte		1		LSB
# The official e_machine number for MIPS is now #8, regardless of endianness.
# The second number (#10) will be deprecated later. For now, we still
# say something if #10 is encountered, but only gory details for #8.
>>18    leshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  lelong&0xf0000000	0x00000000	MIPS-I
>>>>36  lelong&0xf0000000	0x10000000	MIPS-II
>>>>36  lelong&0xf0000000	0x20000000	MIPS-III
>>>>36  lelong&0xf0000000	0x30000000	MIPS-IV
>>>>36  lelong&0xf0000000	0x40000000	MIPS-V
>>>>36  lelong&0xf0000000	0x60000000	MIPS32
>>>>36  lelong&0xf0000000	0x70000000	MIPS64
>>>>36  lelong&0xf0000000	0x80000000	MIPS32 rel2
>>>>36  lelong&0xf0000000	0x90000000	MIPS64 rel2
# only for 64-bit
>>>4	byte		2
>>>>48  lelong&0xf0000000	0x00000000	MIPS-I
>>>>48  lelong&0xf0000000	0x10000000	MIPS-II
>>>>48  lelong&0xf0000000	0x20000000	MIPS-III
>>>>48  lelong&0xf0000000	0x30000000	MIPS-IV
>>>>48  lelong&0xf0000000	0x40000000	MIPS-V
>>>>48  lelong&0xf0000000	0x60000000	MIPS32
>>>>48  lelong&0xf0000000	0x70000000	MIPS64 
>>>>48  lelong&0xf0000000	0x80000000	MIPS32 rel2
>>>>48  lelong&0xf0000000	0x90000000	MIPS64 rel2
>>16	leshort		0		no file type,
>>16	leshort		1		relocatable,
>>16	leshort		2		executable,
>>16	leshort		3		shared object,
# Core handling from Peter Tobias <tobias@@server.et-inf.fho-emden.de>
# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@@ds9.au.s.shuttle.de>
>>16	leshort		4		core file
# Core file detection is not reliable.
#>>>(0x38+0xcc) string	>\0		of '%s'
#>>>(0x38+0x10) lelong	>0		(signal %d),
>>16	leshort		&0xff00		processor-specific,
>>18	leshort		0		no machine,
>>18	leshort		1		AT&T WE32100 - invalid byte order,
>>18	leshort		2		SPARC - invalid byte order,
>>18	leshort		3		Intel 80386,
>>18	leshort		4		Motorola
>>>36	lelong		&0x01000000	68000 - invalid byte order,
>>>36	lelong		&0x00810000	CPU32 - invalid byte order,
>>>36	lelong		0		68020 - invalid byte order,
>>18	leshort		5		Motorola 88000 - invalid byte order,
>>18	leshort		6		Intel 80486,
>>18	leshort		7		Intel 80860,
>>18	leshort		8		MIPS,
>>18	leshort		9		Amdahl - invalid byte order,
>>18	leshort		10		MIPS (deprecated),
>>18	leshort		11		RS6000 - invalid byte order,
>>18	leshort		15		PA-RISC - invalid byte order,
>>>50	leshort		0x0214		2.0
>>>48	leshort		&0x0008		(LP64),
>>18	leshort		16		nCUBE,
>>18	leshort		17		Fujitsu VPP500,
>>18	leshort		18		SPARC32PLUS,
>>18	leshort		20		PowerPC,
>>18	leshort		36		NEC V800,
>>18	leshort		37		Fujitsu FR20,
>>18	leshort		38		TRW RH-32,
>>18	leshort		39		Motorola RCE,
>>18	leshort		40		ARM,
>>18	leshort		41		Alpha,
>>18	leshort		42		Hitachi SH,
>>18	leshort		43		SPARC V9 - invalid byte order,
>>18	leshort		44		Siemens Tricore Embedded Processor,
>>18	leshort		45		Argonaut RISC Core, Argonaut Technologies Inc.,
>>18	leshort		46		Hitachi H8/300,
>>18	leshort		47		Hitachi H8/300H,
>>18	leshort		48		Hitachi H8S,
>>18	leshort		49		Hitachi H8/500,
>>18	leshort		50		IA-64 (Intel 64 bit architecture)
>>18	leshort		51		Stanford MIPS-X,
>>18	leshort		52		Motorola Coldfire,
>>18	leshort		53		Motorola M68HC12,
>>18	leshort		62		AMD x86-64,
>>18	leshort		75		Digital VAX,
>>18	leshort		97		NatSemi 32k,
>>18	leshort		0x9026		Alpha (unofficial),
>>20	lelong		0		invalid version
>>20	lelong		1		version 1
>>36	lelong		1		MathCoPro/FPU/MAU Required
>5	byte		2		MSB
# only for MIPS - see comment in little-endian section above.
>>18    beshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  belong&0xf0000000	0x00000000	MIPS-I
>>>>36  belong&0xf0000000	0x10000000	MIPS-II
>>>>36  belong&0xf0000000	0x20000000	MIPS-III
>>>>36  belong&0xf0000000	0x30000000	MIPS-IV
>>>>36  belong&0xf0000000	0x40000000	MIPS-V
>>>>36  belong&0xf0000000	0x60000000	MIPS32
>>>>36  belong&0xf0000000	0x70000000	MIPS64
>>>>36  belong&0xf0000000	0x80000000	MIPS32 rel2
>>>>36  belong&0xf0000000	0x90000000	MIPS64 rel2
# only for 64-bit
>>>4	byte		2
>>>>48	belong&0xf0000000	0x00000000	MIPS-I
>>>>48	belong&0xf0000000	0x10000000	MIPS-II
>>>>48	belong&0xf0000000	0x20000000	MIPS-III
>>>>48	belong&0xf0000000	0x30000000	MIPS-IV
>>>>48	belong&0xf0000000	0x40000000	MIPS-V
>>>>48	belong&0xf0000000	0x60000000	MIPS32
>>>>48	belong&0xf0000000	0x70000000	MIPS64 
>>>>48	belong&0xf0000000	0x80000000	MIPS32 rel2
>>>>48	belong&0xf0000000	0x90000000	MIPS64 rel2
>>16	beshort		0		no file type,
>>16	beshort		1		relocatable,
>>16	beshort		2		executable,
>>16	beshort		3		shared object,
>>16	beshort		4		core file,
#>>>(0x38+0xcc) string	>\0		of '%s'
#>>>(0x38+0x10) belong	>0		(signal %d),
>>16	beshort		&0xff00		processor-specific,
>>18	beshort		0		no machine,
>>18	beshort		1		AT&T WE32100,
>>18	beshort		2		SPARC,
>>18	beshort		3		Intel 80386 - invalid byte order,
>>18	beshort		4		Motorola
>>>36	belong		&0x01000000	68000,
>>>36	belong		&0x00810000	CPU32,
>>>36	belong		0		68020,
>>18	beshort		5		Motorola 88000,
>>18	beshort		6		Intel 80486 - invalid byte order,
>>18	beshort		7		Intel 80860,
>>18	beshort		8		MIPS,
>>18	beshort		9		Amdahl,
>>18	beshort		10		MIPS (deprecated),
>>18	beshort		11		RS6000,
>>18	beshort		15		PA-RISC
>>>50	beshort		0x0214		2.0
>>>48	beshort		&0x0008		(LP64)
>>18	beshort		16		nCUBE,
>>18	beshort		17		Fujitsu VPP500,
>>18	beshort		18		SPARC32PLUS,
>>>36	belong&0xffff00	&0x000100	V8+ Required,
>>>36	belong&0xffff00	&0x000200	Sun UltraSPARC1 Extensions Required,
>>>36	belong&0xffff00	&0x000400	HaL R1 Extensions Required,
>>>36	belong&0xffff00	&0x000800	Sun UltraSPARC3 Extensions Required,
>>18	beshort		20		PowerPC or cisco 4500,
>>18	beshort		21		cisco 7500,
>>18	beshort		24		cisco SVIP,
>>18	beshort		25		cisco 7200,
>>18	beshort		36		NEC V800 or cisco 12000,
>>18	beshort		37		Fujitsu FR20,
>>18	beshort		38		TRW RH-32,
>>18	beshort		39		Motorola RCE,
>>18	beshort		40		ARM,
>>18	beshort		41		Alpha,
>>18	beshort		42		Hitachi SH,
>>18	beshort		43		SPARC V9,
>>18	beshort		44		Siemens Tricore Embedded Processor,
>>18	beshort		45		Argonaut RISC Core, Argonaut Technologies Inc.,
>>18	beshort		46		Hitachi H8/300,
>>18	beshort		47		Hitachi H8/300H,
>>18	beshort		48		Hitachi H8S,
>>18	beshort		49		Hitachi H8/500,
>>18	beshort		50		Intel Merced Processor,
>>18	beshort		51		Stanford MIPS-X,
>>18	beshort		52		Motorola Coldfire,
>>18	beshort		53		Motorola M68HC12,
>>18	beshort		73		Cray NV1,
>>18	beshort		75		Digital VAX,
>>18	beshort		97		NatSemi 32k,
>>18	beshort		0x9026		Alpha (unofficial),
>>20	belong		0		invalid version
>>20	belong		1		version 1
>>36	belong		1		MathCoPro/FPU/MAU Required
>8	string		>\0		(%s)
>8	string		\0
>>7	byte		0		(SYSV)
>>7	byte		1		(HP-UX)
>>7	byte		2		(NetBSD)
>>7	byte		3		(GNU/Linux)
>>7	byte		4		(GNU/Hurd)
>>7	byte		5		(86Open)
>>7	byte		6		(Solaris)
>>7	byte		7		(Monterey)
>>7	byte		8		(IRIX)
>>7	byte		9		(FreeBSD)
>>7	byte		10		(Tru64)
>>7	byte		11		(Novell Modesto)
>>7	byte		12		(OpenBSD)
>>7	byte		97		(ARM)
>>7	byte		255		(embedded)
@


1.25
log
@Detect ns32k ELF files.
@
text
@@


1.24
log
@conflict therapy
@
text
@d100 1
d187 1
@


1.23
log
@Added support for differentiating between ELF executables
for the 68000, 68020, and CPU32.
@
text
@a7 1
# MIPS R3000 may also be for MIPS R2000.
d14 1
a14 1
# only for MIPS
d21 3
a23 1
# only for MIPS R3000_BE
d27 9
a35 6
>>>>36  lelong&0xf0000000       0x00000000      mips-1
>>>>36  lelong&0xf0000000       0x10000000      mips-2
>>>>36  lelong&0xf0000000       0x20000000      mips-3
>>>>36  lelong&0xf0000000       0x30000000      mips-4
>>>>36  lelong&0xf0000000       0x40000000      mips-5
>>>>36  lelong&0xf0000000       0x50000000      mips-6
d38 9
a46 6
>>>>48  lelong&0xf0000000       0x00000000      mips-1
>>>>48  lelong&0xf0000000       0x10000000      mips-2
>>>>48  lelong&0xf0000000       0x20000000      mips-3
>>>>48  lelong&0xf0000000       0x30000000      mips-4
>>>>48  lelong&0xf0000000       0x40000000      mips-5
>>>>48  lelong&0xf0000000       0x50000000      mips-6
d54 3
d69 1
a69 2
# "officially" big endian, but binutils bfd only emits magic #8 for MIPS.
>>18	leshort		8		MIPS R3000_LE [bfd bug],
d71 1
a71 1
>>18	leshort		10		MIPS R3000_LE,
d105 1
a105 1
# only for MIPS R3000_BE
d109 9
a117 6
>>>>36  belong&0xf0000000       0x00000000      mips-1
>>>>36  belong&0xf0000000       0x10000000      mips-2
>>>>36  belong&0xf0000000       0x20000000      mips-3
>>>>36  belong&0xf0000000       0x30000000      mips-4
>>>>36  belong&0xf0000000       0x40000000      mips-5
>>>>36  belong&0xf0000000       0x50000000      mips-6
d120 9
a128 6
>>>>48  belong&0xf0000000       0x00000000      mips-1
>>>>48  belong&0xf0000000       0x10000000      mips-2
>>>>48  belong&0xf0000000       0x20000000      mips-3
>>>>48  belong&0xf0000000       0x30000000      mips-4
>>>>48  belong&0xf0000000       0x40000000      mips-5
>>>>48  belong&0xf0000000       0x50000000      mips-6
d134 2
d148 1
a148 1
>>18	beshort		8		MIPS R3000_BE,
d150 1
a150 1
>>18	beshort		10		MIPS R3000_LE - invalid byte order,
@


1.22
log
@Slight cleanup to ELF core file handing, and add support for
NetBSD-style ELF core files.
@
text
@d52 4
a55 1
>>18	leshort		4		Motorola 68000 - invalid byte order,
d124 4
a127 1
>>18	beshort		4		Motorola 68000,
@


1.21
log
@resolve conflicts
@
text
@a46 2
>>>(0x38+0xcc) string	>\0		of '%s'
>>>(0x38+0x10) lelong	>0		(signal %d),
a115 2
>>>(0x38+0xcc) string	>\0		of '%s'
>>>(0x38+0x10) belong	>0		(signal %d),
@


1.20
log
@Add x86-64.
@
text
@a93 15
>8	string		>\0		(%s)
>8	string		\0
>>7	byte		0		(SYSV)
>>7	byte		1		(HP-UX)
>>7	byte		2		(NetBSD)
>>7	byte		3		(GNU/Linux)
>>7	byte		4		(GNU/Hurd)
>>7	byte		5		(86Open)
>>7	byte		6		(Solaris)
>>7	byte		7		(Monterey)
>>7	byte		8		(IRIX)
>>7	byte		9		(FreeBSD)
>>7	byte		10		(Tru64)
>>7	byte		97		(ARM)
>>7	byte		255		(embedded)
d165 1
d171 17
@


1.19
log
@resolve conflicts
@
text
@d88 1
@


1.18
log
@Advanced RISC Machines Limited officially became ARM Limited on 1998-05-21.
Update the ARM ELF magic to match.
@
text
@d64 2
d94 14
d147 3
a149 1
>>18	beshort		15		PA-RISC,
@


1.17
log
@resolve conflicts
@
text
@d72 1
a72 1
>>18	leshort		40		Advanced RISC Machines ARM,
d147 1
a147 1
>>18	beshort		40		Advanced RISC Machines ARM,
@


1.16
log
@Print ABI and mips level for "real" little endian MIPS binaries too.
@
text
@d59 1
a59 1
>>18	leshort		8		MIPS R3000_LE,
@


1.15
log
@Handle MIPS little endian output better when bfd outputs magic 8 (MIPS BE)
instead of 10 (MIPS LE).
@
text
@d15 1
a15 1
# only for MIPS R3000_BE
d17 1
@


1.14
log
@Resolve corn flakes.
@
text
@d21 18
d57 2
a58 1
>>18	leshort		8		MIPS R3000_BE - invalid byte order,
@


1.14.6.1
log
@Pull up file 3.32 (requested by christos, approved by thorpej).
@
text
@d15 1
a15 1
# only for MIPS
a16 1
>>18	beshort		10
a20 18
# only for MIPS R3000_BE
>>18    leshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  lelong&0xf0000000       0x00000000      mips-1
>>>>36  lelong&0xf0000000       0x10000000      mips-2
>>>>36  lelong&0xf0000000       0x20000000      mips-3
>>>>36  lelong&0xf0000000       0x30000000      mips-4
>>>>36  lelong&0xf0000000       0x40000000      mips-5
>>>>36  lelong&0xf0000000       0x50000000      mips-6
# only for 64-bit
>>>4	byte		2
>>>>48  lelong&0xf0000000       0x00000000      mips-1
>>>>48  lelong&0xf0000000       0x10000000      mips-2
>>>>48  lelong&0xf0000000       0x20000000      mips-3
>>>>48  lelong&0xf0000000       0x30000000      mips-4
>>>>48  lelong&0xf0000000       0x40000000      mips-5
>>>>48  lelong&0xf0000000       0x50000000      mips-6
d39 1
a39 2
# "officially" big endian, but binutils bfd only emits magic #8 for MIPS.
>>18	leshort		8		MIPS R3000_LE,
@


1.13
log
@fix duplicated "leshort 42 Hitachi SH" (one of them should be "beshort").
(part of NetBSD/sh3 patches)
@
text
@d15 3
d62 1
a62 1
>>18	leshort		50		Intel Merced Processor,
d73 18
d115 4
d130 1
a130 1
>>18	beshort		43		SPARC V9 - invalid byte order,
@


1.13.2.1
log
@Pull up to last week's -current.
@
text
@a14 3
# only for MIPS R3000_BE
>>18	beshort		8
>>>36   belong          &0x20           N32
d59 1
a59 1
>>18	leshort		50		IA-64 (Intel 64 bit architecture)
a69 18
# only for MIPS R3000_BE
>>18    beshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  belong&0xf0000000       0x00000000      mips-1
>>>>36  belong&0xf0000000       0x10000000      mips-2
>>>>36  belong&0xf0000000       0x20000000      mips-3
>>>>36  belong&0xf0000000       0x30000000      mips-4
>>>>36  belong&0xf0000000       0x40000000      mips-5
>>>>36  belong&0xf0000000       0x50000000      mips-6
# only for 64-bit
>>>4	byte		2
>>>>48  belong&0xf0000000       0x00000000      mips-1
>>>>48  belong&0xf0000000       0x10000000      mips-2
>>>>48  belong&0xf0000000       0x20000000      mips-3
>>>>48  belong&0xf0000000       0x30000000      mips-4
>>>>48  belong&0xf0000000       0x40000000      mips-5
>>>>48  belong&0xf0000000       0x50000000      mips-6
a93 4
>>>36	belong&0xffff00	&0x000100	V8+ Required,
>>>36	belong&0xffff00	&0x000200	Sun UltraSPARC1 Extensions Required,
>>>36	belong&0xffff00	&0x000400	HaL R1 Extensions Required,
>>>36	belong&0xffff00	&0x000800	Sun UltraSPARC3 Extensions Required,
d105 1
a105 1
>>18	beshort		43		SPARC V9,
@


1.12
log
@Add knowledge of the VAX ELF magic number
@
text
@d104 1
a104 1
>>18	leshort		42		Hitachi SH,
@


1.11
log
@resolve corn flakes.
@
text
@d63 1
d116 1
@


1.10
log
@Add entries for Alpha, ARM, PARISC, SPARC V9, IA64, and others
@
text
@d23 1
d25 2
a26 1
>>>400  lelong          >0              (signal %d),
d42 1
a42 1
>>18	leshort		17		VPP500,
a43 1
>>18	leshort		19		Intel 80960,
d49 2
a50 2
>>18	leshort		40		ARM,
>>18	leshort		41		Alpha - new,
d52 12
a63 3
>>18	leshort		43		SPARC V9(64),
>>18	leshort		50		Intel IA64 (Merced),
>>18	leshort		0x9026		Alpha,
d67 1
d74 2
a75 1
>>>400	lelong		>0		(signal %d),
d91 1
a91 1
>>18	beshort		17		VPP500,
d93 5
a97 3
>>18	beshort		19		Intel 80960,
>>18	beshort		20		PowerPC,
>>18	beshort		36		NEC V800,
d101 15
a115 6
>>18	beshort		40		ARM,
>>18	beshort		41		Alpha - new,
>>18	beshort		42		Hitachi SH,
>>18	beshort		43		SPARC V9(64),
>>18	beshort		50		Intel IA64 (Merced),
>>18	beshort		0x9026		Alpha,
@


1.9
log
@MIPS RS3000 should be R3000
@
text
@d42 1
d44 9
d81 1
d83 9
@


1.8
log
@bring in changes from file-3.22
@
text
@d8 1
a8 1
# MIPS RS3000 may also be for MIPS RS2000.
d34 1
a34 1
>>18	leshort		8		MIPS RS3000_BE - invalid byte order,
d36 1
a36 1
>>18	leshort		10		MIPS RS3000_LE,
d63 1
a63 1
>>18	beshort		8		MIPS RS3000_BE,
d65 1
a65 1
>>18	beshort		10		MIPS RS3000_LE - invalid byte order,
@


1.7
log
@Changes from file-3.21
@
text
@a7 1
# Byte order is probably big-endian for MIPS RS3000 and Amdahl.
d9 1
a23 1
>>>576  string          >\0             of '%s'
d34 9
a42 2
>>18	leshort		8		MIPS RS3000,
>>18	leshort		9		Amdahl,
a52 1
>>>576	string		>\0		of '%s'
d63 1
a63 1
>>18	beshort		8		MIPS RS3000,
d65 7
@


1.6
log
@Back out previous.  Please beat me about the head and shoulders with
a large stick if I ever attempt to touch file(1) again.
@
text
@d22 4
a25 1
>>16	leshort		4		core file,
d37 1
d47 2
d59 2
a60 1
>>18	leshort		9		Amdahl,
@


1.5
log
@Move the definition of MSB (in byte 5) to sit next to the other definitions
for byte 5 values... No functional change, just adds some clarity.
@
text
@a17 1
>5	byte		2		MSB
d37 1
@


1.4
log
@Update to file-3.19.
- Magic fixes
- MAGIC environment variable processing
- Better LEGAL.NOTICE
- -m magic : separated list of magic files processing
@
text
@d18 1
a37 1
>5	byte		2		MSB
@


1.3
log
@Integrated file-3.17
@
text
@d8 3
d25 1
a25 1
>>18	leshort		1		AT&T WE32100,
d33 1
d53 1
@


1.2
log
@Updated to file-3.16; fixes PR867
@
text
@d8 1
a8 1
# MIPS, i486 added by Daniel Quinlan (quinlan@@yggdrasil.com)
d15 17
a31 15
>>16	leshort		0		unknown type
>>16	leshort		1		relocatable
>>16	leshort		2		executable
>>16	leshort		3		dynamic lib
>>16	leshort		4		core file
>>18	leshort		0		unknown machine
>>18	leshort		1		WE32100 and up
>>18	leshort		2		SPARC - invalid byte order
>>18	leshort		3		i386 (386 and up)
>>18	leshort		4		M68000 - invalid byte order
>>18	leshort		5		M88000 - invalud byte order
>>18	leshort		6		i486
>>18	leshort		7		i860
>>18	leshort		8		MIPS
>>20	lelong		1		Version 1
d34 17
a50 15
>>16	beshort		0		unknown type
>>16	beshort		1		relocatable
>>16	beshort		2		executable
>>16	beshort		3		dynamic lib
>>16	beshort		4		core file
>>18	beshort		0		unknown machine
>>18	beshort		1		WE32100 and up
>>18	beshort		2		SPARC
>>18	beshort		3		i386 (386 and up) - invalid byte order
>>18	beshort		4		M68000
>>18	beshort		5		M88000
>>18	beshort		6		i486 - invalid byte order
>>18	beshort		7		i860
>>18	beshort		8		MIPS
>>20	belong		1		Version 1
@


1.1
log
@New updated magic database from Ian Darwin (plus some fixes from me
to images, tex, and audio).  QMAGIC exectables are detected.
@
text
@d1 3
d5 2
a6 6
# ELF
# Missing MIPS image type and flags
#
# Question marks on processor types flag "should not happen because the
# byte order is wrong".  We have to check the byte order flag to see what
# byte order all the other stuff in the header is in.
d8 1
d22 1
a22 1
>>18	leshort		2		SPARC?
d24 3
a26 2
>>18	leshort		4		M68000?
>>18	leshort		5		M88000?
d28 1
d40 1
a40 1
>>18	beshort		3		i386 (386 and up)?
d43 1
d45 1
a47 1

@


1.1.1.1
log
@file-3.26
@
text
@a0 3

#------------------------------------------------------------------------------
# elf:  file(1) magic for ELF executables
d2 2
a3 2
# We have to check the byte order flag to see what byte order all the
# other stuff in the header is in.
d5 3
a7 2
# MIPS R3000 may also be for MIPS R2000.
# What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
a8 1
# updated by Daniel Quinlan (quinlan@@yggdrasil.com)
d15 4
a18 6
>>16	leshort		0		no file type,
>>16	leshort		1		relocatable,
>>16	leshort		2		executable,
>>16	leshort		3		shared object,
# Core handling from Peter Tobias <tobias@@server.et-inf.fho-emden.de>
# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@@ds9.au.s.shuttle.de>
d20 8
a27 41
>>>(0x38+0xcc) string	>\0		of '%s'
>>>(0x38+0x10) lelong	>0		(signal %d),
>>16	leshort		&0xff00		processor-specific,
>>18	leshort		0		no machine,
>>18	leshort		1		AT&T WE32100 - invalid byte order,
>>18	leshort		2		SPARC - invalid byte order,
>>18	leshort		3		Intel 80386,
>>18	leshort		4		Motorola 68000 - invalid byte order,
>>18	leshort		5		Motorola 88000 - invalid byte order,
>>18	leshort		6		Intel 80486,
>>18	leshort		7		Intel 80860,
>>18	leshort		8		MIPS R3000_BE - invalid byte order,
>>18	leshort		9		Amdahl - invalid byte order,
>>18	leshort		10		MIPS R3000_LE,
>>18	leshort		11		RS6000 - invalid byte order,
>>18	leshort		15		PA-RISC - invalid byte order,
>>18	leshort		16		nCUBE,
>>18	leshort		17		Fujitsu VPP500,
>>18	leshort		18		SPARC32PLUS,
>>18	leshort		20		PowerPC,
>>18	leshort		36		NEC V800,
>>18	leshort		37		Fujitsu FR20,
>>18	leshort		38		TRW RH-32,
>>18	leshort		39		Motorola RCE,
>>18	leshort		40		Advanced RISC Machines ARM,
>>18	leshort		41		Alpha,
>>18	leshort		42		Hitachi SH,
>>18	leshort		43		SPARC V9 - invalid byte order,
>>18	leshort		44		Siemens Tricore Embedded Processor,
>>18	leshort		45		Argonaut RISC Core, Argonaut Technologies Inc.,
>>18	leshort		46		Hitachi H8/300,
>>18	leshort		47		Hitachi H8/300H,
>>18	leshort		48		Hitachi H8S,
>>18	leshort		49		Hitachi H8/500,
>>18	leshort		50		Intel Merced Processor,
>>18	leshort		51		Stanford MIPS-X,
>>18	leshort		52		Motorola Coldfire,
>>18	leshort		53		Motorola M68HC12,
>>18	leshort		0x9026		Alpha (unofficial),
>>20	lelong		0		invalid version
>>20	lelong		1		version 1
a28 1
>8	string		>\0		(%s)
d30 13
a42 49
>>16	beshort		0		no file type,
>>16	beshort		1		relocatable,
>>16	beshort		2		executable,
>>16	beshort		3		shared object,
>>16	beshort		4		core file,
>>>(0x38+0xcc) string	>\0		of '%s'
>>>(0x38+0x10) belong	>0		(signal %d),
>>16	beshort		&0xff00		processor-specific,
>>18	beshort		0		no machine,
>>18	beshort		1		AT&T WE32100,
>>18	beshort		2		SPARC,
>>18	beshort		3		Intel 80386 - invalid byte order,
>>18	beshort		4		Motorola 68000,
>>18	beshort		5		Motorola 88000,
>>18	beshort		6		Intel 80486 - invalid byte order,
>>18	beshort		7		Intel 80860,
>>18	beshort		8		MIPS R3000_BE,
>>18	beshort		9		Amdahl,
>>18	beshort		10		MIPS R3000_LE - invalid byte order,
>>18	beshort		11		RS6000,
>>18	beshort		15		PA-RISC,
>>18	beshort		16		nCUBE,
>>18	beshort		17		Fujitsu VPP500,
>>18	beshort		18		SPARC32PLUS,
>>18	beshort		20		PowerPC or cisco 4500,
>>18	beshort		21		cisco 7500,
>>18	beshort		24		cisco SVIP,
>>18	beshort		25		cisco 7200,
>>18	beshort		36		NEC V800 or cisco 12000,
>>18	beshort		37		Fujitsu FR20,
>>18	beshort		38		TRW RH-32,
>>18	beshort		39		Motorola RCE,
>>18	beshort		40		Advanced RISC Machines ARM,
>>18	beshort		41		Alpha,
>>18	leshort		42		Hitachi SH,
>>18	beshort		43		SPARC V9 - invalid byte order,
>>18	beshort		44		Siemens Tricore Embedded Processor,
>>18	beshort		45		Argonaut RISC Core, Argonaut Technologies Inc.,
>>18	beshort		46		Hitachi H8/300,
>>18	beshort		47		Hitachi H8/300H,
>>18	beshort		48		Hitachi H8S,
>>18	beshort		49		Hitachi H8/500,
>>18	beshort		50		Intel Merced Processor,
>>18	beshort		51		Stanford MIPS-X,
>>18	beshort		52		Motorola Coldfire,
>>18	beshort		53		Motorola M68HC12,
>>18	beshort		0x9026		Alpha (unofficial),
>>20	belong		0		invalid version
>>20	belong		1		version 1
d44 1
@


1.1.1.2
log
@new version of file(1)
@
text
@a14 3
# only for MIPS R3000_BE
>>18	beshort		8
>>>36   belong          &0x20           N32
d59 1
a59 1
>>18	leshort		50		IA-64 (Intel 64 bit architecture)
a68 18
# only for MIPS R3000_BE
>>18    beshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  belong&0xf0000000       0x00000000      mips-1
>>>>36  belong&0xf0000000       0x10000000      mips-2
>>>>36  belong&0xf0000000       0x20000000      mips-3
>>>>36  belong&0xf0000000       0x30000000      mips-4
>>>>36  belong&0xf0000000       0x40000000      mips-5
>>>>36  belong&0xf0000000       0x50000000      mips-6
# only for 64-bit
>>>4	byte		2
>>>>48  belong&0xf0000000       0x00000000      mips-1
>>>>48  belong&0xf0000000       0x10000000      mips-2
>>>>48  belong&0xf0000000       0x20000000      mips-3
>>>>48  belong&0xf0000000       0x30000000      mips-4
>>>>48  belong&0xf0000000       0x40000000      mips-5
>>>>48  belong&0xf0000000       0x50000000      mips-6
a92 4
>>>36	belong&0xffff00	&0x000100	V8+ Required,
>>>36	belong&0xffff00	&0x000200	Sun UltraSPARC1 Extensions Required,
>>>36	belong&0xffff00	&0x000400	HaL R1 Extensions Required,
>>>36	belong&0xffff00	&0x000800	Sun UltraSPARC3 Extensions Required,
d103 2
a104 2
>>18	beshort		42		Hitachi SH,
>>18	beshort		43		SPARC V9,
@


1.1.1.3
log
@file 3.32
@
text
@a65 1
>>18	leshort		75		Digital VAX,
a139 1
>>18	beshort		75		Digital VAX,
@


1.1.1.4
log
@file 3.33
@
text
@d15 1
a15 1
# only for MIPS
a16 1
>>18	beshort		10
a20 18
# only for MIPS R3000_BE
>>18    leshort		8
# only for 32-bit
>>>4	byte		1
>>>>36  lelong&0xf0000000       0x00000000      mips-1
>>>>36  lelong&0xf0000000       0x10000000      mips-2
>>>>36  lelong&0xf0000000       0x20000000      mips-3
>>>>36  lelong&0xf0000000       0x30000000      mips-4
>>>>36  lelong&0xf0000000       0x40000000      mips-5
>>>>36  lelong&0xf0000000       0x50000000      mips-6
# only for 64-bit
>>>4	byte		2
>>>>48  lelong&0xf0000000       0x00000000      mips-1
>>>>48  lelong&0xf0000000       0x10000000      mips-2
>>>>48  lelong&0xf0000000       0x20000000      mips-3
>>>>48  lelong&0xf0000000       0x30000000      mips-4
>>>>48  lelong&0xf0000000       0x40000000      mips-5
>>>>48  lelong&0xf0000000       0x50000000      mips-6
d39 1
a39 2
# "officially" big endian, but binutils bfd only emits magic #8 for MIPS.
>>18	leshort		8		MIPS R3000_LE [bfd bug],
@


1.1.1.5
log
@file 3.34
@
text
@a63 2
>>>50	leshort		0x0214		2.0
>>>48	leshort		&0x0008		(LP64),
a91 14
>8	string		\0
>>7	byte		0		(SYSV)
>>7	byte		1		(HP-UX)
>>7	byte		2		(NetBSD)
>>7	byte		3		(GNU/Linux)
>>7	byte		4		(GNU/Hurd)
>>7	byte		5		(86Open)
>>7	byte		6		(Solaris)
>>7	byte		7		(Monterey)
>>7	byte		8		(IRIX)
>>7	byte		9		(FreeBSD)
>>7	byte		10		(Tru64)
>>7	byte		97		(ARM)
>>7	byte		255		(embedded)
d131 1
a131 3
>>18	beshort		15		PA-RISC
>>>50	beshort		0x0214		2.0
>>>48	beshort		&0x0008		(LP64)
@


1.1.1.6
log
@file 3.36
@
text
@d74 1
a74 1
>>18	leshort		40		ARM,
d93 15
d165 1
a165 1
>>18	beshort		40		ARM,
a178 1
>>18	beshort		73		Cray NV1,
a183 17
>8	string		>\0		(%s)
>8	string		\0
>>7	byte		0		(SYSV)
>>7	byte		1		(HP-UX)
>>7	byte		2		(NetBSD)
>>7	byte		3		(GNU/Linux)
>>7	byte		4		(GNU/Hurd)
>>7	byte		5		(86Open)
>>7	byte		6		(Solaris)
>>7	byte		7		(Monterey)
>>7	byte		8		(IRIX)
>>7	byte		9		(FreeBSD)
>>7	byte		10		(Tru64)
>>7	byte		11		(Novell Modesto)
>>7	byte		12		(OpenBSD)
>>7	byte		97		(ARM)
>>7	byte		255		(embedded)
@


1.1.1.7
log
@file 3.37
@
text
@a87 1
>>18	leshort		62		AMD x86-64,
@


1.1.1.8
log
@file 3.38
@
text
@d8 1
d15 1
a15 1
# only for MIPS - in the future, the ABI field of e_flags should be used.
d22 1
a22 3
# The official e_machine number for MIPS is now #8, regardless of endianness.
# The second number (#10) will be deprecated later. For now, we still
# say something if #10 is encountered, but only gory details for #8.
d26 6
a31 9
>>>>36  lelong&0xf0000000	0x00000000	MIPS-I
>>>>36  lelong&0xf0000000	0x10000000	MIPS-II
>>>>36  lelong&0xf0000000	0x20000000	MIPS-III
>>>>36  lelong&0xf0000000	0x30000000	MIPS-IV
>>>>36  lelong&0xf0000000	0x40000000	MIPS-V
>>>>36  lelong&0xf0000000	0x60000000	MIPS32
>>>>36  lelong&0xf0000000	0x70000000	MIPS64
>>>>36  lelong&0xf0000000	0x80000000	MIPS32 rel2
>>>>36  lelong&0xf0000000	0x90000000	MIPS64 rel2
d34 6
a39 9
>>>>48  lelong&0xf0000000	0x00000000	MIPS-I
>>>>48  lelong&0xf0000000	0x10000000	MIPS-II
>>>>48  lelong&0xf0000000	0x20000000	MIPS-III
>>>>48  lelong&0xf0000000	0x30000000	MIPS-IV
>>>>48  lelong&0xf0000000	0x40000000	MIPS-V
>>>>48  lelong&0xf0000000	0x60000000	MIPS32
>>>>48  lelong&0xf0000000	0x70000000	MIPS64 
>>>>48  lelong&0xf0000000	0x80000000	MIPS32 rel2
>>>>48  lelong&0xf0000000	0x90000000	MIPS64 rel2
d47 2
a48 3
# Core file detection is not reliable.
#>>>(0x38+0xcc) string	>\0		of '%s'
#>>>(0x38+0x10) lelong	>0		(signal %d),
d54 1
a54 4
>>18	leshort		4		Motorola
>>>36	lelong		&0x01000000	68000 - invalid byte order,
>>>36	lelong		&0x00810000	CPU32 - invalid byte order,
>>>36	lelong		0		68020 - invalid byte order,
d58 2
a59 1
>>18	leshort		8		MIPS,
d61 1
a61 1
>>18	leshort		10		MIPS (deprecated),
d95 1
a95 1
# only for MIPS - see comment in little-endian section above.
d99 6
a104 9
>>>>36  belong&0xf0000000	0x00000000	MIPS-I
>>>>36  belong&0xf0000000	0x10000000	MIPS-II
>>>>36  belong&0xf0000000	0x20000000	MIPS-III
>>>>36  belong&0xf0000000	0x30000000	MIPS-IV
>>>>36  belong&0xf0000000	0x40000000	MIPS-V
>>>>36  belong&0xf0000000	0x60000000	MIPS32
>>>>36  belong&0xf0000000	0x70000000	MIPS64
>>>>36  belong&0xf0000000	0x80000000	MIPS32 rel2
>>>>36  belong&0xf0000000	0x90000000	MIPS64 rel2
d107 6
a112 9
>>>>48	belong&0xf0000000	0x00000000	MIPS-I
>>>>48	belong&0xf0000000	0x10000000	MIPS-II
>>>>48	belong&0xf0000000	0x20000000	MIPS-III
>>>>48	belong&0xf0000000	0x30000000	MIPS-IV
>>>>48	belong&0xf0000000	0x40000000	MIPS-V
>>>>48	belong&0xf0000000	0x60000000	MIPS32
>>>>48	belong&0xf0000000	0x70000000	MIPS64 
>>>>48	belong&0xf0000000	0x80000000	MIPS32 rel2
>>>>48	belong&0xf0000000	0x90000000	MIPS64 rel2
d118 2
a119 2
#>>>(0x38+0xcc) string	>\0		of '%s'
#>>>(0x38+0x10) belong	>0		(signal %d),
d125 1
a125 4
>>18	beshort		4		Motorola
>>>36	belong		&0x01000000	68000,
>>>36	belong		&0x00810000	CPU32,
>>>36	belong		0		68020,
d129 1
a129 1
>>18	beshort		8		MIPS,
d131 1
a131 1
>>18	beshort		10		MIPS (deprecated),
@


