head	1.2;
access;
symbols
	RELENG_8_4:1.2.0.2
	RELENG_9_1_0_RELEASE:1.1.1.6.42.1
	RELENG_9_1:1.1.1.6.42.1.0.2
	RELENG_9_1_BP:1.1.1.6.42.1
	RELENG_8_3_0_RELEASE:1.1.1.6
	RELENG_8_3:1.1.1.6.0.46
	RELENG_8_3_BP:1.1.1.6
	RELENG_9_0_0_RELEASE:1.1.1.6
	RELENG_9_0:1.1.1.6.0.44
	RELENG_9_0_BP:1.1.1.6
	RELENG_9:1.1.1.6.0.42
	RELENG_9_BP:1.1.1.6
	RELENG_7_4_0_RELEASE:1.1.1.6
	RELENG_8_2_0_RELEASE:1.1.1.6
	RELENG_7_4:1.1.1.6.0.40
	RELENG_7_4_BP:1.1.1.6
	RELENG_8_2:1.1.1.6.0.38
	RELENG_8_2_BP:1.1.1.6
	RELENG_8_1_0_RELEASE:1.1.1.6
	RELENG_8_1:1.1.1.6.0.36
	RELENG_8_1_BP:1.1.1.6
	RELENG_7_3_0_RELEASE:1.1.1.6
	RELENG_7_3:1.1.1.6.0.34
	RELENG_7_3_BP:1.1.1.6
	RELENG_8_0_0_RELEASE:1.1.1.6
	RELENG_8_0:1.1.1.6.0.32
	RELENG_8_0_BP:1.1.1.6
	RELENG_8:1.1.1.6.0.30
	RELENG_8_BP:1.1.1.6
	RELENG_7_2_0_RELEASE:1.1.1.6
	RELENG_7_2:1.1.1.6.0.28
	RELENG_7_2_BP:1.1.1.6
	RELENG_7_1_0_RELEASE:1.1.1.6
	RELENG_6_4_0_RELEASE:1.1.1.6
	RELENG_7_1:1.1.1.6.0.26
	RELENG_7_1_BP:1.1.1.6
	RELENG_6_4:1.1.1.6.0.24
	RELENG_6_4_BP:1.1.1.6
	RELENG_7_0_0_RELEASE:1.1.1.6
	file_4_23__r1_46:1.1.1.6
	RELENG_6_3_0_RELEASE:1.1.1.6
	file_4_23:1.1.1.6
	RELENG_7_0:1.1.1.6.0.22
	RELENG_7_0_BP:1.1.1.6
	RELENG_6_3:1.1.1.6.0.20
	RELENG_6_3_BP:1.1.1.6
	RELENG_7:1.1.1.6.0.18
	RELENG_7_BP:1.1.1.6
	file_4_21:1.1.1.6
	file_4_19:1.1.1.6
	RELENG_6_2_0_RELEASE:1.1.1.6
	RELENG_6_2:1.1.1.6.0.16
	RELENG_6_2_BP:1.1.1.6
	file_4_17_A:1.1
	file_4_17:1.1.1.6
	RELENG_5_5_0_RELEASE:1.1.1.6
	RELENG_5_5:1.1.1.6.0.14
	RELENG_5_5_BP:1.1.1.6
	RELENG_6_1_0_RELEASE:1.1.1.6
	RELENG_6_1:1.1.1.6.0.12
	RELENG_6_1_BP:1.1.1.6
	RELENG_6_0_0_RELEASE:1.1.1.6
	RELENG_6_0:1.1.1.6.0.10
	RELENG_6_0_BP:1.1.1.6
	RELENG_6:1.1.1.6.0.8
	RELENG_6_BP:1.1.1.6
	RELENG_5_4_0_RELEASE:1.1.1.6
	RELENG_5_4:1.1.1.6.0.6
	RELENG_5_4_BP:1.1.1.6
	RELENG_4_11_0_RELEASE:1.1.1.2.2.2
	file_4_12:1.1.1.6
	RELENG_4_11:1.1.1.2.2.2.0.16
	RELENG_4_11_BP:1.1.1.2.2.2
	RELENG_5_3_0_RELEASE:1.1.1.6
	RELENG_5_3:1.1.1.6.0.4
	RELENG_5_3_BP:1.1.1.6
	RELENG_5:1.1.1.6.0.2
	RELENG_5_BP:1.1.1.6
	file_4_10:1.1.1.6
	RELENG_4_10_0_RELEASE:1.1.1.2.2.2
	RELENG_4_10:1.1.1.2.2.2.0.14
	RELENG_4_10_BP:1.1.1.2.2.2
	RELENG_5_2_1_RELEASE:1.1.1.5
	RELENG_5_2_0_RELEASE:1.1.1.5
	RELENG_5_2:1.1.1.5.0.6
	RELENG_5_2_BP:1.1.1.5
	RELENG_4_9_0_RELEASE:1.1.1.2.2.2
	RELENG_4_9:1.1.1.2.2.2.0.12
	RELENG_4_9_BP:1.1.1.2.2.2
	RELENG_5_1_0_RELEASE:1.1.1.5
	RELENG_5_1:1.1.1.5.0.4
	RELENG_5_1_BP:1.1.1.5
	RELENG_4_8_0_RELEASE:1.1.1.2.2.2
	RELENG_4_8:1.1.1.2.2.2.0.10
	RELENG_4_8_BP:1.1.1.2.2.2
	file_3_41:1.1.1.5
	file_3_40:1.1.1.5
	RELENG_5_0_0_RELEASE:1.1.1.5
	RELENG_5_0:1.1.1.5.0.2
	RELENG_5_0_BP:1.1.1.5
	RELENG_4_7_0_RELEASE:1.1.1.2.2.2
	RELENG_4_7:1.1.1.2.2.2.0.8
	RELENG_4_7_BP:1.1.1.2.2.2
	file_3_39:1.1.1.5
	RELENG_4_6_2_RELEASE:1.1.1.2.2.2
	RELENG_4_6_1_RELEASE:1.1.1.2.2.2
	RELENG_4_6_0_RELEASE:1.1.1.2.2.2
	RELENG_4_6:1.1.1.2.2.2.0.6
	RELENG_4_6_BP:1.1.1.2.2.2
	RELENG_4_5_0_RELEASE:1.1.1.2.2.2
	RELENG_4_5:1.1.1.2.2.2.0.4
	RELENG_4_5_BP:1.1.1.2.2.2
	file_3_37:1.1.1.5
	RELENG_4_4_0_RELEASE:1.1.1.2.2.2
	RELENG_4_4:1.1.1.2.2.2.0.2
	RELENG_4_4_BP:1.1.1.2.2.2
	file_3_36:1.1.1.5
	file_3_35:1.1.1.4
	RELENG_4_3_0_RELEASE:1.1.1.2.2.1
	RELENG_4_3:1.1.1.2.2.1.0.2
	RELENG_4_3_BP:1.1.1.2.2.1
	file_3_34:1.1.1.3
	RELENG_4:1.1.1.2.0.2
	file_3_33:1.1.1.2
	file_3_32:1.1.1.1
	ZOULAS:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2012.04.19.03.20.13;	author obrien;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2000.11.05.08.33.55;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.2.2.1
date	2012.04.19.03.20.13;	author svnexp;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2013.03.28.13.00.45;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2000.11.05.08.33.55;	author obrien;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2000.11.26.21.26.19;	author obrien;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2001.03.25.18.37.04;	author obrien;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.04.25.07.41.20;	author obrien;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2001.07.30.03.09.46;	author obrien;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.08.09.08.45.41;	author obrien;	state Exp;
branches
	1.1.1.6.42.1;
next	;

1.1.1.2.2.1
date	2000.11.26.21.37.24;	author obrien;	state Exp;
branches;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2001.08.02.22.51.38;	author obrien;	state Exp;
branches;
next	;

1.1.1.6.42.1
date	2012.07.02.08.48.58;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.2
log
@SVN rev 234449 on 2012-04-19 03:20:13Z by obrien

Update file(1) to version 5.11.
@
text
@
#------------------------------------------------------------------------------
# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
# netbsd:  file(1) magic for NetBSD objects
#
# All new-style magic numbers are in network byte order.
#

0	lelong			000000407	a.out NetBSD little-endian object file
>16	lelong			>0		not stripped
0	belong			000000407	a.out NetBSD big-endian object file
>16	belong			>0		not stripped

0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400407	a.out NetBSD/i386
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	041400507	a.out NetBSD/i386 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600410	a.out NetBSD/m68k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600407	a.out NetBSD/m68k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	041600507	a.out NetBSD/m68k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
>0	byte			&0x80		
>>20	belong			<4096		shared library
>>20	belong			=4096		dynamically linked executable
>>20	belong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042000407	a.out NetBSD/m68k4k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042200407	a.out NetBSD/ns32532
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	045200507	a.out NetBSD/powerpc core
>12	string			>\0		from '%s'

0	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400410	a.out NetBSD/sparc pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400407	a.out NetBSD/sparc
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	042400507	a.out NetBSD/sparc core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600410	a.out NetBSD/pmax pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600407	a.out NetBSD/pmax
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	042600507	a.out NetBSD/pmax core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000407	a.out NetBSD/vax 1k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400407	a.out NetBSD/vax 4k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

# NetBSD/alpha does not support (and has never supported) a.out objects,
# so no rules are provided for them.  NetBSD/alpha ELF objects are 
# dealt with in "elf".
0	lelong		0x00070185		ECOFF NetBSD/alpha binary
>10	leshort		0x0001			not stripped
>10	leshort		0x0000			stripped
0	belong&0377777777	043200507	a.out NetBSD/alpha core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043400413	a.out NetBSD/mips demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400410	a.out NetBSD/mips pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400407	a.out NetBSD/mips
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	043400507	a.out NetBSD/mips core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
>0	byte			&0x80
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600407	a.out NetBSD/arm32
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
# NetBSD/arm26 has always used ELF objects, but it shares a core file
# format with NetBSD/arm32.
0	belong&0377777777	043600507	a.out NetBSD/arm core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

# Kernel core dump format
0	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
>0	belong&0x03ff0000 0x00000000	\b, Unknown
>0	belong&0x03ff0000 0x00001000	\b, sun 68010/68020
>0	belong&0x03ff0000 0x00020000	\b, sun 68020
>0	belong&0x03ff0000 0x00640000	\b, 386 PC
>0	belong&0x03ff0000 0x00860000	\b, i386 BSD
>0	belong&0x03ff0000 0x00870000	\b, m68k BSD (8K pages)
>0	belong&0x03ff0000 0x00880000	\b, m68k BSD (4K pages)
>0	belong&0x03ff0000 0x00890000	\b, ns32532 BSD
>0	belong&0x03ff0000 0x008a0000	\b, sparc/32 BSD
>0	belong&0x03ff0000 0x008b0000	\b, pmax BSD
>0	belong&0x03ff0000 0x008c0000	\b, vax BSD (1K pages)
>0	belong&0x03ff0000 0x008d0000	\b, alpha BSD
>0	belong&0x03ff0000 0x008e0000	\b, mips BSD (Big Endian)
>0	belong&0x03ff0000 0x008f0000	\b, arm6 BSD
>0	belong&0x03ff0000 0x00900000	\b, m68k BSD (2K pages)
>0	belong&0x03ff0000 0x00910000	\b, sh3 BSD
>0	belong&0x03ff0000 0x00920000	\b, ppc BSD (Big Endian)
>0	belong&0x03ff0000 0x00930000	\b, vax BSD (4K pages)
>0	belong&0x03ff0000 0x00940000	\b, mips1 BSD
>0	belong&0x03ff0000 0x00950000	\b, mips2 BSD
>0	belong&0x03ff0000 0x00960000	\b, parisc BSD
>0	belong&0x03ff0000 0x00970000	\b, sh5/64 BSD
>0	belong&0x03ff0000 0x00980000	\b, sparc/64 BSD
>0	belong&0x03ff0000 0x00990000	\b, amd64 BSD
>0	belong&0x03ff0000 0x009a0000	\b, hp200 (68010) BSD
>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
>0	belong&0x03ff0000 0x00c80000	\b, hp200
>0	belong&0x03ff0000 0x020b0000	\b, hp300 (68020+68881) HP-UX
>0	belong&0x03ff0000 0x020c0000	\b, hp300 (68020+68881) HP-UX
>0	belong&0xfc000000 0x04000000	\b, CPU
>0	belong&0xfc000000 0x08000000	\b, DATA
>0	belong&0xfc000000 0x10000000	\b, STACK
>4	leshort	x			\b, (headersize = %d
>6	leshort	x			\b, segmentsize = %d
>6	lelong	x			\b, segments = %d)
@


1.2.2.1
log
@file netbsd was added on branch RELENG_8_4 on 2013-03-28 13:00:45 +0000
@
text
@d1 286
@


1.2.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 246

#------------------------------------------------------------------------------
# netbsd:  file(1) magic for NetBSD objects
#
# All new-style magic numbers are in network byte order.
#

0	lelong			000000407	a.out NetBSD little-endian object file
>16	lelong			>0		not stripped
0	belong			000000407	a.out NetBSD big-endian object file
>16	belong			>0		not stripped

0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400407	a.out NetBSD/i386
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	041400507	a.out NetBSD/i386 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600410	a.out NetBSD/m68k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600407	a.out NetBSD/m68k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	041600507	a.out NetBSD/m68k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
>0	byte			&0x80		
>>20	belong			<4096		shared library
>>20	belong			=4096		dynamically linked executable
>>20	belong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042000407	a.out NetBSD/m68k4k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042200407	a.out NetBSD/ns32532
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	045200507	a.out NetBSD/powerpc core
>12	string			>\0		from '%s'

0	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400410	a.out NetBSD/sparc pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400407	a.out NetBSD/sparc
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	042400507	a.out NetBSD/sparc core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600410	a.out NetBSD/pmax pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600407	a.out NetBSD/pmax
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	042600507	a.out NetBSD/pmax core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000407	a.out NetBSD/vax 1k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
>0	byte			&0x80		
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400407	a.out NetBSD/vax 4k
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

# NetBSD/alpha does not support (and has never supported) a.out objects,
# so no rules are provided for them.  NetBSD/alpha ELF objects are 
# dealt with in "elf".
0	lelong		0x00070185		ECOFF NetBSD/alpha binary
>10	leshort		0x0001			not stripped
>10	leshort		0x0000			stripped
0	belong&0377777777	043200507	a.out NetBSD/alpha core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043400413	a.out NetBSD/mips demand paged
>0	byte			&0x80		
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400410	a.out NetBSD/mips pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400407	a.out NetBSD/mips
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	belong			!0		executable
>>20	belong			=0		object file
>16	belong			>0		not stripped
0	belong&0377777777	043400507	a.out NetBSD/mips core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
>0	byte			&0x80
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600407	a.out NetBSD/arm32
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80
>>0	byte			&0x40		position independent
>>20	lelong			!0		executable
>>20	lelong			=0		object file
>16	lelong			>0		not stripped
# NetBSD/arm26 has always used ELF objects, but it shares a core file
# format with NetBSD/arm32.
0	belong&0377777777	043600507	a.out NetBSD/arm core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
@


1.1
log
@Initial revision
@
text
@d3 1
d9 1
a9 1
0	lelong			000000407	NetBSD little-endian object file
d11 1
a11 1
0	belong			000000407	NetBSD big-endian object file
d14 1
a14 1
0	belong&0377777777	041400413	NetBSD/i386 demand paged
d21 1
a21 1
0	belong&0377777777	041400410	NetBSD/i386 pure
d25 1
a25 1
0	belong&0377777777	041400407	NetBSD/i386
d32 1
a32 1
0	belong&0377777777	041400507	NetBSD/i386 core
d36 1
a36 1
0	belong&0377777777	041600413	NetBSD/m68k demand paged
d43 1
a43 1
0	belong&0377777777	041600410	NetBSD/m68k pure
d47 1
a47 1
0	belong&0377777777	041600407	NetBSD/m68k
d54 1
a54 1
0	belong&0377777777	041600507	NetBSD/m68k core
d58 1
a58 1
0	belong&0377777777	042000413	NetBSD/m68k4k demand paged
d65 1
a65 1
0	belong&0377777777	042000410	NetBSD/m68k4k pure
d69 1
a69 1
0	belong&0377777777	042000407	NetBSD/m68k4k
d76 1
a76 1
0	belong&0377777777	042000507	NetBSD/m68k4k core
d80 1
a80 1
0	belong&0377777777	042200413	NetBSD/ns32532 demand paged
d87 1
a87 1
0	belong&0377777777	042200410	NetBSD/ns32532 pure
d91 1
a91 1
0	belong&0377777777	042200407	NetBSD/ns32532
d98 1
a98 1
0	belong&0377777777	042200507	NetBSD/ns32532 core
d102 4
a105 1
0	belong&0377777777	042400413	NetBSD/sparc demand paged
d112 1
a112 1
0	belong&0377777777	042400410	NetBSD/sparc pure
d116 1
a116 1
0	belong&0377777777	042400407	NetBSD/sparc
d123 1
a123 1
0	belong&0377777777	042400507	NetBSD/sparc core
d127 1
a127 1
0	belong&0377777777	042600413	NetBSD/pmax demand paged
d134 1
a134 1
0	belong&0377777777	042600410	NetBSD/pmax pure
d138 1
a138 1
0	belong&0377777777	042600407	NetBSD/pmax
d145 1
a145 1
0	belong&0377777777	042600507	NetBSD/pmax core
d149 1
a149 1
0	belong&0377777777	043000413	NetBSD/vax 1k demand paged
d156 1
a156 1
0	belong&0377777777	043000410	NetBSD/vax 1k pure
d160 1
a160 1
0	belong&0377777777	043000407	NetBSD/vax 1k
d167 1
a167 1
0	belong&0377777777	043000507	NetBSD/vax 1k core
d171 1
a171 1
0	belong&0377777777	045400413	NetBSD/vax 4k demand paged
d178 1
a178 1
0	belong&0377777777	045400410	NetBSD/vax 4k pure
d182 1
a182 1
0	belong&0377777777	045400407	NetBSD/vax 4k
d189 1
a189 1
0	belong&0377777777	045400507	NetBSD/vax 4k core
d199 1
a199 1
0	belong&0377777777	043200507	NetBSD/alpha core
d201 1
a201 1
>32	belong			!0		(signal %d)
d203 1
a203 1
0	belong&0377777777	043400413	NetBSD/mips demand paged
d210 1
a210 1
0	belong&0377777777	043400410	NetBSD/mips pure
d214 1
a214 1
0	belong&0377777777	043400407	NetBSD/mips
d221 1
a221 1
0	belong&0377777777	043400507	NetBSD/mips core
d225 1
a225 1
0	belong&0377777777	043600413	NetBSD/arm32 demand paged
d227 3
a229 3
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
d232 1
a232 1
0	belong&0377777777	043600410	NetBSD/arm32 pure
d236 1
a236 1
0	belong&0377777777	043600407	NetBSD/arm32
d243 3
a245 1
0	belong&0377777777	043600507	NetBSD/arm32 core
d248 39
@


1.1.1.1
log
@Virgin import of FILE 3.32
@
text
@@


1.1.1.2
log
@Virgin import of Christos Zoulas FILE 3.33.
@
text
@a100 3
0	belong&0377777777	045200507	NetBSD/powerpc core
>12	string			>\0		from '%s'

@


1.1.1.3
log
@Virgin import of Christos Zoulas's FILE 3.34.
@
text
@d226 3
a228 3
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
@


1.1.1.4
log
@Virgin import of Christos Zoulas's FILE 3.35.
@
text
@d242 1
a242 3
# NetBSD/arm26 has always used ELF objects, but it shares a core file
# format with NetBSD/arm32.
0	belong&0377777777	043600507	NetBSD/arm core
@


1.1.1.5
log
@Virgin import of Christos Zoulas's FILE 3.36.
@
text
@d200 1
a200 1
>32	lelong			!0		(signal %d)
@


1.1.1.6
log
@Virgin import of Christos Zoulas's FILE 4.10.
*- file is now broken into a library containing and processing the magic
   and a consumer binary.
@
text
@d8 1
a8 1
0	lelong			000000407	a.out NetBSD little-endian object file
d10 1
a10 1
0	belong			000000407	a.out NetBSD big-endian object file
d13 1
a13 1
0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
d20 1
a20 1
0	belong&0377777777	041400410	a.out NetBSD/i386 pure
d24 1
a24 1
0	belong&0377777777	041400407	a.out NetBSD/i386
d31 1
a31 1
0	belong&0377777777	041400507	a.out NetBSD/i386 core
d35 1
a35 1
0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
d42 1
a42 1
0	belong&0377777777	041600410	a.out NetBSD/m68k pure
d46 1
a46 1
0	belong&0377777777	041600407	a.out NetBSD/m68k
d53 1
a53 1
0	belong&0377777777	041600507	a.out NetBSD/m68k core
d57 1
a57 1
0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
d64 1
a64 1
0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
d68 1
a68 1
0	belong&0377777777	042000407	a.out NetBSD/m68k4k
d75 1
a75 1
0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
d79 1
a79 1
0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
d86 1
a86 1
0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
d90 1
a90 1
0	belong&0377777777	042200407	a.out NetBSD/ns32532
d97 1
a97 1
0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
d101 1
a101 1
0	belong&0377777777	045200507	a.out NetBSD/powerpc core
d104 1
a104 1
0	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
d111 1
a111 1
0	belong&0377777777	042400410	a.out NetBSD/sparc pure
d115 1
a115 1
0	belong&0377777777	042400407	a.out NetBSD/sparc
d122 1
a122 1
0	belong&0377777777	042400507	a.out NetBSD/sparc core
d126 1
a126 1
0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
d133 1
a133 1
0	belong&0377777777	042600410	a.out NetBSD/pmax pure
d137 1
a137 1
0	belong&0377777777	042600407	a.out NetBSD/pmax
d144 1
a144 1
0	belong&0377777777	042600507	a.out NetBSD/pmax core
d148 1
a148 1
0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
d155 1
a155 1
0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
d159 1
a159 1
0	belong&0377777777	043000407	a.out NetBSD/vax 1k
d166 1
a166 1
0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
d170 1
a170 1
0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
d177 1
a177 1
0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
d181 1
a181 1
0	belong&0377777777	045400407	a.out NetBSD/vax 4k
d188 1
a188 1
0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
d198 1
a198 1
0	belong&0377777777	043200507	a.out NetBSD/alpha core
d202 1
a202 1
0	belong&0377777777	043400413	a.out NetBSD/mips demand paged
d209 1
a209 1
0	belong&0377777777	043400410	a.out NetBSD/mips pure
d213 1
a213 1
0	belong&0377777777	043400407	a.out NetBSD/mips
d220 1
a220 1
0	belong&0377777777	043400507	a.out NetBSD/mips core
d224 1
a224 1
0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
d231 1
a231 1
0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
d235 1
a235 1
0	belong&0377777777	043600407	a.out NetBSD/arm32
d244 1
a244 1
0	belong&0377777777	043600507	a.out NetBSD/arm core
@


1.1.1.6.42.1
log
@SVN rev 237983 on 2012-07-02 08:48:58Z by obrien

MFC: r234449: update file(1) to version 5.11.
@
text
@a2 1
# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
a246 39

# Kernel core dump format
0	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
>0	belong&0x03ff0000 0x00000000	\b, Unknown
>0	belong&0x03ff0000 0x00001000	\b, sun 68010/68020
>0	belong&0x03ff0000 0x00020000	\b, sun 68020
>0	belong&0x03ff0000 0x00640000	\b, 386 PC
>0	belong&0x03ff0000 0x00860000	\b, i386 BSD
>0	belong&0x03ff0000 0x00870000	\b, m68k BSD (8K pages)
>0	belong&0x03ff0000 0x00880000	\b, m68k BSD (4K pages)
>0	belong&0x03ff0000 0x00890000	\b, ns32532 BSD
>0	belong&0x03ff0000 0x008a0000	\b, sparc/32 BSD
>0	belong&0x03ff0000 0x008b0000	\b, pmax BSD
>0	belong&0x03ff0000 0x008c0000	\b, vax BSD (1K pages)
>0	belong&0x03ff0000 0x008d0000	\b, alpha BSD
>0	belong&0x03ff0000 0x008e0000	\b, mips BSD (Big Endian)
>0	belong&0x03ff0000 0x008f0000	\b, arm6 BSD
>0	belong&0x03ff0000 0x00900000	\b, m68k BSD (2K pages)
>0	belong&0x03ff0000 0x00910000	\b, sh3 BSD
>0	belong&0x03ff0000 0x00920000	\b, ppc BSD (Big Endian)
>0	belong&0x03ff0000 0x00930000	\b, vax BSD (4K pages)
>0	belong&0x03ff0000 0x00940000	\b, mips1 BSD
>0	belong&0x03ff0000 0x00950000	\b, mips2 BSD
>0	belong&0x03ff0000 0x00960000	\b, parisc BSD
>0	belong&0x03ff0000 0x00970000	\b, sh5/64 BSD
>0	belong&0x03ff0000 0x00980000	\b, sparc/64 BSD
>0	belong&0x03ff0000 0x00990000	\b, amd64 BSD
>0	belong&0x03ff0000 0x009a0000	\b, hp200 (68010) BSD
>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
>0	belong&0x03ff0000 0x00c80000	\b, hp200
>0	belong&0x03ff0000 0x020b0000	\b, hp300 (68020+68881) HP-UX
>0	belong&0x03ff0000 0x020c0000	\b, hp300 (68020+68881) HP-UX
>0	belong&0xfc000000 0x04000000	\b, CPU
>0	belong&0xfc000000 0x08000000	\b, DATA
>0	belong&0xfc000000 0x10000000	\b, STACK
>4	leshort	x			\b, (headersize = %d
>6	leshort	x			\b, segmentsize = %d
>6	lelong	x			\b, segments = %d)
@


1.1.1.2.2.1
log
@MFC:  Christos Zoulas's FILE 3.33
@
text
@@


1.1.1.2.2.2
log
@Update to version 3.36.

This includes knowledge of the lh6 & lh7 "LHA" compression archive formats.
There are also many improvements in supporting other formats such as
Microsoft cabinet file (which is another popular archived format on
Windows), some audio/video file formats including WAV, ASF and so on.

Approved by:	jkh
@
text
@d200 1
a200 1
>32	lelong			!0		(signal %d)
d226 3
a228 3
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
d242 1
a242 3
# NetBSD/arm26 has always used ELF objects, but it shares a core file
# format with NetBSD/arm32.
0	belong&0377777777	043600507	NetBSD/arm core
@


