head	1.18;
access;
symbols
	perseant-exfatfs-base-20250801:1.18
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.46
	perseant-exfatfs-base:1.18
	cjep_sun2x:1.18.0.44
	cjep_sun2x-base:1.18
	cjep_staticlib_x-base1:1.18
	cjep_staticlib_x:1.18.0.42
	cjep_staticlib_x-base:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	phil-wifi-20200406:1.18
	pgoyette-compat-merge-20190127:1.18
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.18
	pgoyette-compat-1126:1.18
	pgoyette-compat-1020:1.18
	pgoyette-compat-0930:1.18
	pgoyette-compat-0906:1.18
	pgoyette-compat-0728:1.18
	pgoyette-compat-0625:1.18
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.18
	pgoyette-compat-0330:1.18
	pgoyette-compat-0322:1.18
	pgoyette-compat-0315:1.18
	pgoyette-compat:1.18.0.40
	pgoyette-compat-base:1.18
	perseant-stdc-iso10646:1.18.0.38
	perseant-stdc-iso10646-base:1.18
	prg-localcount2-base3:1.18
	prg-localcount2-base2:1.18
	prg-localcount2-base1:1.18
	prg-localcount2:1.18.0.36
	prg-localcount2-base:1.18
	pgoyette-localcount-20170426:1.18
	bouyer-socketcan-base1:1.18
	pgoyette-localcount-20170320:1.18
	bouyer-socketcan:1.18.0.34
	bouyer-socketcan-base:1.18
	pgoyette-localcount-20170107:1.18
	pgoyette-localcount-20161104:1.18
	localcount-20160914:1.18
	pgoyette-localcount-20160806:1.18
	pgoyette-localcount-20160726:1.18
	pgoyette-localcount:1.18.0.32
	pgoyette-localcount-base:1.18
	netbsd-5-2-3-RELEASE:1.18
	netbsd-5-1-5-RELEASE:1.18
	yamt-pagecache-base9:1.18
	yamt-pagecache-tag8:1.18
	tls-earlyentropy:1.18.0.28
	tls-earlyentropy-base:1.18
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.18
	riastradh-drm2-base3:1.18
	netbsd-5-2-2-RELEASE:1.18
	netbsd-5-1-4-RELEASE:1.18
	netbsd-5-2-1-RELEASE:1.18
	netbsd-5-1-3-RELEASE:1.18
	agc-symver:1.18.0.30
	agc-symver-base:1.18
	tls-maxphys-base:1.18
	yamt-pagecache-base8:1.18
	netbsd-5-2:1.18.0.26
	yamt-pagecache-base7:1.18
	netbsd-5-2-RELEASE:1.18
	netbsd-5-2-RC1:1.18
	yamt-pagecache-base6:1.18
	yamt-pagecache-base5:1.18
	yamt-pagecache-base4:1.18
	netbsd-5-1-2-RELEASE:1.18
	netbsd-5-1-1-RELEASE:1.18
	yamt-pagecache-base3:1.18
	yamt-pagecache-base2:1.18
	yamt-pagecache:1.18.0.24
	yamt-pagecache-base:1.18
	bouyer-quota2-nbase:1.18
	bouyer-quota2:1.18.0.22
	bouyer-quota2-base:1.18
	matt-nb5-pq3:1.18.0.20
	matt-nb5-pq3-base:1.18
	netbsd-5-1:1.18.0.18
	netbsd-5-1-RELEASE:1.18
	netbsd-5-1-RC4:1.18
	netbsd-5-1-RC3:1.18
	netbsd-5-1-RC2:1.18
	netbsd-5-1-RC1:1.18
	netbsd-5-0-2-RELEASE:1.18
	netbsd-5-0-1-RELEASE:1.18
	jym-xensuspend-nbase:1.18
	netbsd-5-0:1.18.0.16
	netbsd-5-0-RELEASE:1.18
	netbsd-5-0-RC4:1.18
	netbsd-5-0-RC3:1.18
	netbsd-5-0-RC2:1.18
	jym-xensuspend:1.18.0.14
	jym-xensuspend-base:1.18
	netbsd-5-0-RC1:1.18
	netbsd-5:1.18.0.12
	netbsd-5-base:1.18
	mjf-devfs2:1.18.0.10
	mjf-devfs2-base:1.18
	yamt-pf42-base4:1.18
	yamt-pf42-base3:1.18
	hpcarm-cleanup-nbase:1.18
	yamt-pf42-base2:1.18
	yamt-pf42:1.18.0.8
	yamt-pf42-base:1.18
	keiichi-mipv6-nbase:1.18
	keiichi-mipv6:1.18.0.6
	keiichi-mipv6-base:1.18
	cube-autoconf:1.18.0.4
	cube-autoconf-base:1.18
	hpcarm-cleanup:1.18.0.2
	hpcarm-cleanup-base:1.18
	netbsd-1-6-PATCH002-RELEASE:1.17
	netbsd-1-6-PATCH002:1.17
	netbsd-1-6-PATCH002-RC4:1.17
	netbsd-1-6-PATCH002-RC3:1.17
	netbsd-1-6-PATCH002-RC2:1.17
	netbsd-1-6-PATCH002-RC1:1.17
	netbsd-1-6-PATCH001:1.17
	netbsd-1-6-PATCH001-RELEASE:1.17
	netbsd-1-6-PATCH001-RC3:1.17
	netbsd-1-6-PATCH001-RC2:1.17
	netbsd-1-6-PATCH001-RC1:1.17
	fvdl_fs64_base:1.17
	netbsd-1-6-RELEASE:1.17
	netbsd-1-6-RC3:1.17
	netbsd-1-6-RC2:1.17
	netbsd-1-6-RC1:1.17
	FILE3_39:1.1.1.6
	netbsd-1-6:1.17.0.2
	netbsd-1-6-base:1.17
	FILE3_38:1.1.1.6
	netbsd-1-5-PATCH003:1.13.2.2
	FILE3_37:1.1.1.6
	netbsd-1-5-PATCH002:1.13.2.2
	FILE3_36:1.1.1.6
	netbsd-1-5-PATCH001:1.13.2.2
	FILE3_34:1.1.1.5
	FILE3_33:1.1.1.4
	netbsd-1-5-RELEASE:1.13.2.1
	netbsd-1-5-BETA2:1.13.2.1
	netbsd-1-5-BETA:1.13.2.1
	FILE3_32:1.1.1.3
	netbsd-1-4-PATCH003:1.12
	netbsd-1-5-ALPHA2:1.13
	netbsd-1-5:1.13.0.2
	netbsd-1-5-base:1.13
	minoura-xpg4dl-base:1.12
	minoura-xpg4dl:1.12.0.8
	FILE3_31:1.1.1.2
	netbsd-1-4-PATCH002:1.12
	wrstuden-devbsize-19991221:1.12
	wrstuden-devbsize:1.12.0.6
	wrstuden-devbsize-base:1.12
	comdex-fall-1999:1.12.0.4
	comdex-fall-1999-base:1.12
	FILE3_28:1.1.1.2
	netbsd-1-4-PATCH001:1.12
	netbsd-1-4-RELEASE:1.12
	netbsd-1-4:1.12.0.2
	netbsd-1-4-base:1.12
	netbsd-1-3-PATCH003:1.10
	netbsd-1-3-PATCH003-CANDIDATE2:1.10
	netbsd-1-3-PATCH003-CANDIDATE1:1.10
	netbsd-1-3-PATCH003-CANDIDATE0:1.10
	FILE3_26:1.1.1.1
	CHRISTOS:1.1.1
	FILE:1.1.1
	netbsd-1-3-PATCH002:1.10
	netbsd-1-3-PATCH001:1.10
	netbsd-1-3-RELEASE:1.10
	netbsd-1-3-BETA:1.10
	netbsd-1-3:1.10.0.2
	netbsd-1-3-base:1.10
	netbsd-0-9-RELEASE:1.2
	netbsd-0-9-BETA:1.2
	netbsd-0-9-ALPHA2:1.2
	netbsd-0-9-ALPHA:1.2
	netbsd-0-9:1.2.0.2
	netbsd-0-9-base:1.2;
locks; strict;
comment	@# @;


1.18
date	2003.03.26.00.05.42;	author pooka;	state dead;
branches;
next	1.17;

1.17
date	2001.05.16.00.52.48;	author itohy;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.13.23.56.13;	author bjh21;	state Exp;
branches;
next	1.15;

1.15
date	2001.01.08.12.41.06;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	2000.09.22.16.35.01;	author pooka;	state Exp;
branches;
next	1.13;

1.13
date	2000.06.08.13.57.41;	author tsubai;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	98.10.12.01.41.32;	author matt;	state Exp;
branches
	1.12.8.1;
next	1.11;

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

1.10
date	97.07.16.02.50.45;	author mark;	state Exp;
branches;
next	1.9;

1.9
date	97.01.27.17.58.27;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	93.11.03.05.58.02;	author mycroft;	state dead;
branches;
next	1.7;

1.7
date	93.11.03.04.09.39;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	93.11.03.00.40.19;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	93.11.03.00.24.59;	author mycroft;	state Exp;
branches;
next	1.4;

1.4
date	93.10.28.19.29.48;	author phil;	state Exp;
branches;
next	1.3;

1.3
date	93.08.09.09.55.18;	author deraadt;	state Exp;
branches;
next	1.2;

1.2
date	93.06.22.23.01.55;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	93.06.13.23.43.00;	author deraadt;	state Exp;
branches
	1.1.1.1;
next	;

1.13.2.1
date	2000.09.30.06.20.49;	author simonb;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2001.02.03.20.05.27;	author he;	state Exp;
branches;
next	;

1.12.8.1
date	2000.06.23.16.30.20;	author minoura;	state Exp;
branches;
next	;

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

1.1.1.2
date	99.11.01.17.30.29;	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.31;	author pooka;	state Exp;
branches;
next	1.1.1.5;

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

1.1.1.6
date	2001.07.22.22.31.58;	author pooka;	state Exp;
branches;
next	;


desc
@@


1.18
log
@use file from dist
@
text
@
#------------------------------------------------------------------------------
# netbsd:  file(1) magic for NetBSD objects
#
# All new-style magic numbers are in network byte order.
#

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

0	belong&0377777777	041400413	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	NetBSD/i386 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400407	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	NetBSD/i386 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	041600413	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	NetBSD/m68k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600407	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	NetBSD/m68k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042000413	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	NetBSD/m68k4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042000407	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	NetBSD/m68k4k core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042200413	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	NetBSD/ns32532 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042200407	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	NetBSD/ns32532 core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

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

0	belong&0377777777	042400413	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	NetBSD/sparc pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400407	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	NetBSD/sparc core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	042600413	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	NetBSD/pmax pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600407	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	NetBSD/pmax core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043000413	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	NetBSD/vax 1k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000407	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	NetBSD/vax 1k core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	045400413	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	NetBSD/vax 4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400407	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	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	NetBSD/alpha core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	043400413	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	NetBSD/mips pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400407	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	NetBSD/mips core
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)

0	belong&0377777777	043600413	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	NetBSD/arm32 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600407	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	NetBSD/arm core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
@


1.17
log
@alpha core has signal number in little endian, no in big endian.
@
text
@@


1.16
log
@Since arm26 and arm32 now share a core file format, describe such a file
as a "NetBSD/arm core".
@
text
@d200 1
a200 1
>32	belong			!0		(signal %d)
@


1.15
log
@fix arm32 confusion. There was a regression that changed 4096->8192
somewhere after 1.10. I am fixing this in the master source of file.
[this should be pulled up for 1.5.1]
@
text
@d242 3
a244 1
0	belong&0377777777	043600507	NetBSD/arm32 core
@


1.14
log
@resolve conflicts
@
text
@d226 3
a228 3
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
@


1.13
log
@Recognize NetBSD/powerpc core file.
@
text
@d33 1
d55 1
d77 1
d99 1
d124 1
d146 1
d168 1
d190 1
d200 1
d222 1
d244 1
@


1.13.2.1
log
@Pull up file 3.32 (requested by christos, approved by thorpej).
@
text
@a32 1
>32	lelong			!0		(signal %d)
a53 1
>32	belong			!0		(signal %d)
a74 1
>32	belong			!0		(signal %d)
a95 1
>32	lelong			!0		(signal %d)
a119 1
>32	belong			!0		(signal %d)
a140 1
>32	lelong			!0		(signal %d)
a161 1
>32	lelong			!0		(signal %d)
a182 1
>32	lelong			!0		(signal %d)
a191 1
>32	belong			!0		(signal %d)
a212 1
>32	belong			!0		(signal %d)
a233 1
>32	lelong			!0		(signal %d)
@


1.13.2.2
log
@Pull up revision 1.15 (requested by christos):
  Fix arm32 confusion.
@
text
@d226 3
a228 3
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
@


1.12
log
@Teach file that NetBSD/vax has two magic numbers.
@
text
@d97 3
@


1.12.8.1
log
@Sync w/ netbsd-1-5-base.
@
text
@a96 3
0	belong&0377777777	045200507	NetBSD/powerpc core
>12	string			>\0		from '%s'

@


1.11
log
@resolve corn flakes.
@
text
@d139 1
a139 1
0	belong&0377777777	043000413	NetBSD/vax demand paged
d146 1
a146 1
0	belong&0377777777	043000410	NetBSD/vax pure
d150 1
a150 1
0	belong&0377777777	043000407	NetBSD/vax
d157 22
a178 1
0	belong&0377777777	043000507	NetBSD/vax core
@


1.10
log
@Fixed recognition of NetBSD/arm32 shared libraries and dynamically
linked executables.
@
text
@d163 1
a163 1
0	leshort		0x00070185		ECOFF NetBSD/alpha binary
d192 3
a194 3
>>20	lelong			<4096		shared library
>>20	lelong			=4096		dynamically linked executable
>>20	lelong			>4096		dynamically linked executable
@


1.9
log
@bring in changes from file-3.22
@
text
@d192 3
a194 3
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
@


1.8
log
@Clean up deleted files.
@
text
@d1 3
d7 7
a13 1
0	belong&077777777	041400413	netbsd/i386 demand paged
d20 1
a20 1
0	belong&077777777	041400410	netbsd/i386 pure
d24 1
a24 1
0	belong&077777777	041400407	netbsd/i386
d26 4
a29 1
>0	byte			^0x80		executable
d31 2
d34 1
a34 1
0	belong&077777777	041600413	netbsd/m68k demand paged
d36 3
a38 3
>>20	belong			<4096		shared library
>>20	belong			=4096		dynamically linked executable
>>20	belong			>4096		dynamically linked executable
d41 1
a41 1
0	belong&077777777	041600410	netbsd/m68k pure
d45 1
a45 1
0	belong&077777777	041600407	netbsd/m68k
d47 4
a50 1
>0	byte			^0x80		executable
d52 2
d55 1
a55 1
0	belong&077777777	042000413	netbsd/m68k4k demand paged
d62 1
a62 1
0	belong&077777777	042000410	netbsd/m68k4k pure
d66 39
a104 1
0	belong&077777777	042000407	netbsd/m68k4k
d108 9
d118 1
a118 1
0	belong&077777777	042200413	netbsd/ns32532 demand paged
d125 1
a125 1
0	belong&077777777	042200410	netbsd/ns32532 pure
d129 18
a146 1
0	belong&077777777	042200407	netbsd/ns32532
d150 9
d160 10
a169 1
0	belong&077777777	042400413	netbsd/sparc demand paged
d171 3
a173 3
>>20	belong			<4096		shared library
>>20	belong			=4096		dynamically linked executable
>>20	belong			>4096		dynamically linked executable
d176 1
a176 1
0	belong&077777777	042400410	netbsd/sparc pure
d180 1
a180 1
0	belong&077777777	042400407	netbsd/sparc
d182 13
d196 14
a209 1
>16	belong			>0		not stripped
@


1.7
log
@Add explicit endians so file(1) works well across architectures.
@
text
@@


1.6
log
@No, I don't need anyone to point out that I was asleep at the keyboard.
Last change revoked.
@
text
@d5 4
a8 4
>0	byte			&0x80		dynamically linked executable
>>20	long			<4096		shared library
>>20	long			=4096		dynamically linked executable
>>20	long			>4096		dynamically linked executable
d10 1
a10 1
>16	long			>0		not stripped
d14 1
a14 1
>16	long			>0		not stripped
d18 1
a18 1
>16	long			>0		not stripped
d21 4
a24 4
>0	byte			&0x80		dynamically linked executable
>>20	long			<4096		shared library
>>20	long			=4096		dynamically linked executable
>>20	long			>4096		dynamically linked executable
d26 1
a26 1
>16	long			>0		not stripped
d30 1
a30 1
>16	long			>0		not stripped
d34 1
a34 1
>16	long			>0		not stripped
d37 4
a40 4
>0	byte			&0x80		dynamically linked executable
>>20	long			<4096		shared library
>>20	long			=4096		dynamically linked executable
>>20	long			>4096		dynamically linked executable
d42 1
a42 1
>16	long			>0		not stripped
d46 1
a46 1
>16	long			>0		not stripped
d50 1
a50 1
>16	long			>0		not stripped
d53 4
a56 4
>0	byte			&0x80		dynamically linked executable
>>20	long			<4096		shared library
>>20	long			=4096		dynamically linked executable
>>20	long			>4096		dynamically linked executable
d58 1
a58 1
>16	long			>0		not stripped
d62 1
a62 1
>16	long			>0		not stripped
d66 1
a66 1
>16	long			>0		not stripped
d69 4
a72 4
>0	byte			&0x80		dynamically linked executable
>>20	long			<4096		shared library
>>20	long			=4096		dynamically linked executable
>>20	long			>4096		dynamically linked executable
d74 1
a74 1
>16	long			>0		not stripped
d78 1
a78 1
>16	long			>0		not stripped
d82 1
a82 1
>16	long			>0		not stripped
@


1.5
log
@Correct test for dynamically linked executables.  (Someone forgot that the
386 is little-endian.)
@
text
@d5 1
a5 1
>0	belong			&0x80000000	dynamically linked executable
d9 1
a9 1
>0	belong			^0x80000000	executable
d12 2
a13 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d16 2
a17 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d21 1
a21 1
>0	belong			&0x80000000	dynamically linked executable
d25 1
a25 1
>0	belong			^0x80000000	executable
d28 2
a29 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d32 2
a33 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d37 1
a37 1
>0	belong			&0x80000000	dynamically linked executable
d41 1
a41 1
>0	belong			^0x80000000	executable
d44 2
a45 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d48 2
a49 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d53 1
a53 1
>0	belong			&0x80000000	dynamically linked executable
d57 1
a57 1
>0	belong			^0x80000000	executable
d60 2
a61 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d64 2
a65 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d69 1
a69 1
>0	belong			&0x80000000	dynamically linked executable
d73 1
a73 1
>0	belong			^0x80000000	executable
d76 2
a77 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
d80 2
a81 2
>0	belong			&0x80000000	dynamically linked executable
>0	belong			^0x80000000	executable
@


1.4
log
@Added ns32532 and the sparc magic numbers.
@
text
@d5 1
a5 1
>0	byte			&0x80
d9 1
a9 1
>0	byte			^0x80		executable
d12 2
a13 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d16 2
a17 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d21 1
a21 1
>0	byte			&0x80
d25 1
a25 1
>0	byte			^0x80		executable
d28 2
a29 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d32 2
a33 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d37 1
a37 1
>0	byte			&0x80
d41 1
a41 1
>0	byte			^0x80		executable
d44 2
a45 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d48 2
a49 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d53 1
a53 1
>0	byte			&0x80
d57 1
a57 1
>0	byte			^0x80		executable
d60 2
a61 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d64 2
a65 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d69 1
a69 1
>0	byte			&0x80
d73 1
a73 1
>0	byte			^0x80		executable
d76 2
a77 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
d80 2
a81 2
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
@


1.3
log
@teach file about the m68k and m68k4k a.out formats
@
text
@d51 32
@


1.2
log
@Only the magic numbers are in network order.
@
text
@d19 32
@


1.1
log
@this is what the new magic numbers will look like
@
text
@d6 3
a8 3
>>20	belong			<4096		shared library
>>20	belong			=4096		dynamically linked executable
>>20	belong			>4096		dynamically linked executable
d10 1
a10 1
>16	belong			>0		not stripped
d14 1
a14 1
>16	belong			>0		not stripped
d18 1
a18 1
>16	belong			>0		not stripped
@


1.1.1.1
log
@file-3.26
@
text
@a0 3

#------------------------------------------------------------------------------
# netbsd:  file(1) magic for NetBSD objects
d4 2
a5 50

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

0	belong&0377777777	041400413	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	NetBSD/i386 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	041400407	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	NetBSD/i386 core
>12	string			>\0		from '%s'

0	belong&0377777777	041600413	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	NetBSD/m68k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	041600407	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	NetBSD/m68k core
>12	string			>\0		from '%s'

0	belong&0377777777	042000413	NetBSD/m68k4k demand paged
>0	byte			&0x80		
d11 1
a11 1
0	belong&0377777777	042000410	NetBSD/m68k4k pure
d15 1
a15 18
0	belong&0377777777	042000407	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	NetBSD/m68k4k core
>12	string			>\0		from '%s'

0	belong&0377777777	042200413	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	NetBSD/ns32532 pure
a17 17
>16	lelong			>0		not stripped
0	belong&0377777777	042200407	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	NetBSD/ns32532 core
>12	string			>\0		from '%s'

0	belong&0377777777	042400413	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
a18 106
0	belong&0377777777	042400410	NetBSD/sparc pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	042400407	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	NetBSD/sparc core
>12	string			>\0		from '%s'

0	belong&0377777777	042600413	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	NetBSD/pmax pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	042600407	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	NetBSD/pmax core
>12	string			>\0		from '%s'

0	belong&0377777777	043000413	NetBSD/vax 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	NetBSD/vax pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043000407	NetBSD/vax
>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	NetBSD/vax core
>12	string			>\0		from '%s'

# 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	NetBSD/alpha core
>12	string			>\0		from '%s'

0	belong&0377777777	043400413	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	NetBSD/mips pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
0	belong&0377777777	043400407	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	NetBSD/mips core
>12	string			>\0		from '%s'

0	belong&0377777777	043600413	NetBSD/arm32 demand paged
>0	byte			&0x80
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600410	NetBSD/arm32 pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	043600407	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
0	belong&0377777777	043600507	NetBSD/arm32 core
>12	string			>\0		from '%s'
@


1.1.1.2
log
@new version of file(1)
@
text
@d139 1
a139 1
0	belong&0377777777	043000413	NetBSD/vax 1k demand paged
d146 1
a146 1
0	belong&0377777777	043000410	NetBSD/vax 1k pure
d150 1
a150 1
0	belong&0377777777	043000407	NetBSD/vax 1k
d157 1
a157 22
0	belong&0377777777	043000507	NetBSD/vax 1k core
>12	string			>\0		from '%s'

0	belong&0377777777	045400413	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	NetBSD/vax 4k pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
0	belong&0377777777	045400407	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	NetBSD/vax 4k core
@


1.1.1.3
log
@file 3.32
@
text
@a32 1
>32	lelong			!0		(signal %d)
a53 1
>32	belong			!0		(signal %d)
a74 1
>32	belong			!0		(signal %d)
a95 1
>32	lelong			!0		(signal %d)
a116 1
>32	belong			!0		(signal %d)
a137 1
>32	lelong			!0		(signal %d)
a158 1
>32	lelong			!0		(signal %d)
a179 1
>32	lelong			!0		(signal %d)
a188 1
>32	belong			!0		(signal %d)
a209 1
>32	belong			!0		(signal %d)
a230 1
>32	lelong			!0		(signal %d)
@


1.1.1.4
log
@file 3.33
@
text
@a100 3
0	belong&0377777777	045200507	NetBSD/powerpc core
>12	string			>\0		from '%s'

@


1.1.1.5
log
@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.6
log
@file 3.36
@
text
@d200 1
a200 1
>32	lelong			!0		(signal %d)
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
@


