head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.14
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.12
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	netbsd-10-0-RC1:1.8
	FILE5_45:1.1.1.10
	netbsd-10:1.8.0.10
	netbsd-10-base:1.8
	FILE5_43:1.1.1.10
	netbsd-9-3-RELEASE:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.8
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.6
	cjep_staticlib_x-base:1.8
	FILE5_40:1.1.1.10
	netbsd-9-1-RELEASE:1.8
	FILE5_39:1.1.1.10
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	is-mlppp:1.8.0.4
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.4
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	FILE5_38:1.1.1.10
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.2
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.4
	FILE5_37:1.1.1.10
	netbsd-8-1-RC1:1.4
	pgoyette-compat-merge-20190127:1.5.2.2
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	FILE5_35:1.1.1.9
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.1.1.5
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.6.0.2
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.4
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.4
	FILE5_33:1.1.1.9
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	netbsd-7-1-2-RELEASE:1.1.1.5
	pgoyette-compat:1.5.0.2
	pgoyette-compat-base:1.5
	netbsd-7-1-1-RELEASE:1.1.1.5
	matt-nb8-mediatek:1.4.0.6
	matt-nb8-mediatek-base:1.4
	FILE5_32:1.1.1.8
	perseant-stdc-iso10646:1.4.0.4
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.2
	netbsd-8-base:1.4
	FILE5_31:1.1.1.8
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.2
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.1.1.5.0.8
	netbsd-7-1-RELEASE:1.1.1.5
	netbsd-7-1-RC2:1.1.1.5
	FILE5_30:1.1.1.7
	netbsd-7-nhusb-base-20170116:1.1.1.5
	bouyer-socketcan:1.2.0.4
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.1.1.5
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.1.1.5
	localcount-20160914:1.2
	netbsd-7-nhusb:1.1.1.5.0.6
	netbsd-7-nhusb-base:1.1.1.5
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.2
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.1.1.5
	netbsd-7-0:1.1.1.5.0.4
	netbsd-7-0-RELEASE:1.1.1.5
	netbsd-7-0-RC3:1.1.1.5
	netbsd-7-0-RC2:1.1.1.5
	netbsd-7-0-RC1:1.1.1.5
	FILE5_22:1.1.1.6
	FILE5_20:1.1.1.5
	netbsd-6-0-6-RELEASE:1.1.1.2.6.1
	netbsd-6-1-5-RELEASE:1.1.1.2.6.1
	netbsd-7:1.1.1.5.0.2
	netbsd-7-base:1.1.1.5
	FILE5_19:1.1.1.5
	yamt-pagecache-base9:1.1.1.4
	yamt-pagecache-tag8:1.1.1.2.4.1
	netbsd-6-1-4-RELEASE:1.1.1.2.6.1
	netbsd-6-0-5-RELEASE:1.1.1.2.6.1
	tls-earlyentropy:1.1.1.4.0.8
	tls-earlyentropy-base:1.1.1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.4
	riastradh-drm2-base3:1.1.1.4
	netbsd-6-1-3-RELEASE:1.1.1.2.6.1
	netbsd-6-0-4-RELEASE:1.1.1.2.6.1
	FILE5_16:1.1.1.4
	netbsd-6-1-2-RELEASE:1.1.1.2.6.1
	netbsd-6-0-3-RELEASE:1.1.1.2.6.1
	netbsd-6-1-1-RELEASE:1.1.1.2.6.1
	riastradh-drm2-base2:1.1.1.4
	riastradh-drm2-base1:1.1.1.4
	riastradh-drm2:1.1.1.4.0.6
	riastradh-drm2-base:1.1.1.4
	netbsd-6-1:1.1.1.2.6.1.0.6
	netbsd-6-0-2-RELEASE:1.1.1.2.6.1
	netbsd-6-1-RELEASE:1.1.1.2.6.1
	khorben-n900:1.1.1.4.0.4
	netbsd-6-1-RC4:1.1.1.2.6.1
	netbsd-6-1-RC3:1.1.1.2.6.1
	agc-symver:1.1.1.4.0.2
	agc-symver-base:1.1.1.4
	FILE5_14:1.1.1.4
	netbsd-6-1-RC2:1.1.1.2.6.1
	netbsd-6-1-RC1:1.1.1.2.6.1
	yamt-pagecache-base8:1.1.1.3
	FILE_5_12:1.1.1.3
	netbsd-6-0-1-RELEASE:1.1.1.2.6.1
	yamt-pagecache-base7:1.1.1.3
	matt-nb6-plus-nbase:1.1.1.2.6.1
	yamt-pagecache-base6:1.1.1.3
	netbsd-6-0:1.1.1.2.6.1.0.4
	netbsd-6-0-RELEASE:1.1.1.2.6.1
	netbsd-6-0-RC2:1.1.1.2.6.1
	tls-maxphys:1.1.1.3.0.2
	tls-maxphys-base:1.1.1.5
	matt-nb6-plus:1.1.1.2.6.1.0.2
	matt-nb6-plus-base:1.1.1.2.6.1
	netbsd-6-0-RC1:1.1.1.2.6.1
	yamt-pagecache-base5:1.1.1.3
	yamt-pagecache-base4:1.1.1.3
	FILE5_11:1.1.1.3
	netbsd-6:1.1.1.2.0.6
	netbsd-6-base:1.1.1.2
	yamt-pagecache-base3:1.1.1.2
	yamt-pagecache-base2:1.1.1.2
	yamt-pagecache:1.1.1.2.0.4
	yamt-pagecache-base:1.1.1.2
	FILE5_09:1.1.1.2
	cherry-xenmp:1.1.1.2.0.2
	cherry-xenmp-base:1.1.1.2
	FILE5_07:1.1.1.2
	bouyer-quota2-nbase:1.1.1.1
	bouyer-quota2:1.1.1.1.0.4
	bouyer-quota2-base:1.1.1.1
	matt-mips64-premerge-20101231:1.1.1.1
	matt-premerge-20091211:1.1.1.1
	jym-xensuspend-base:1.1.1.1
	jym-xensuspend:1.1.1.1.0.2
	jym-xensuspend-nbase:1.1.1.1
	FILE5_03:1.1.1.1
	CHRISTOS:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2019.05.22.17.26.05;	author christos;	state Exp;
branches;
next	1.7;
commitid	GumkPZ4rDiPTYdoB;

1.7
date	2019.01.01.03.12.30;	author christos;	state Exp;
branches;
next	1.6;
commitid	hpPGrc7GuYu4N16B;

1.6
date	2018.04.15.19.45.32;	author christos;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	PISTUVsbDjqSFzyA;

1.5
date	2017.09.27.21.04.05;	author mlelstv;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	oHllyOioc46lxS8A;

1.4
date	2017.05.25.00.11.26;	author christos;	state Exp;
branches;
next	1.3;
commitid	FQJOXzdL3jIJCHSz;

1.3
date	2017.02.10.17.53.24;	author christos;	state Exp;
branches;
next	1.2;
commitid	bl2PZy94aycnQqFz;

1.2
date	2014.12.08.20.54.33;	author christos;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;
commitid	07PodaKc33WPoh1y;

1.1
date	2009.05.08.16.35.09;	author christos;	state Exp;
branches
	1.1.1.1;
next	;

1.6.2.1
date	2019.06.10.21.44.46;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.5.2.1
date	2018.04.22.07.20.08;	author pgoyette;	state Exp;
branches;
next	1.5.2.2;
commitid	W6xykws0Zbl4kpzA;

1.5.2.2
date	2019.01.18.08.48.36;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.2.2.1
date	2017.03.20.06.52.20;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.2.4.1
date	2017.04.21.16.51.24;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.1.1
date	2009.05.08.16.35.09;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;

1.1.1.2
date	2011.05.12.20.47.03;	author christos;	state Exp;
branches
	1.1.1.2.4.1
	1.1.1.2.6.1;
next	1.1.1.3;

1.1.1.3
date	2012.02.22.17.48.38;	author christos;	state Exp;
branches
	1.1.1.3.2.1;
next	1.1.1.4;

1.1.1.4
date	2013.03.23.15.49.18;	author christos;	state Exp;
branches
	1.1.1.4.8.1;
next	1.1.1.5;

1.1.1.5
date	2014.06.13.01.48.25;	author christos;	state Exp;
branches;
next	1.1.1.6;
commitid	jtTYsE5FmJU6MiEx;

1.1.1.6
date	2015.01.02.20.34.28;	author christos;	state Exp;
branches;
next	1.1.1.7;
commitid	VjK78yRsQNs8uu4y;

1.1.1.7
date	2017.02.10.17.42.59;	author christos;	state Exp;
branches;
next	1.1.1.8;
commitid	HAP3kn9Hn6ovMqFz;

1.1.1.8
date	2017.05.24.23.59.57;	author christos;	state Exp;
branches;
next	1.1.1.9;
commitid	WbyOU2LBE5qOyHSz;

1.1.1.9
date	2018.04.15.19.32.47;	author christos;	state Exp;
branches;
next	1.1.1.10;
commitid	unKSwpX2g9VqBzyA;

1.1.1.10
date	2019.05.22.17.19.57;	author christos;	state Exp;
branches;
next	;
commitid	VXeNRYYruN1MWdoB;

1.1.1.1.2.1
date	2009.05.08.16.35.09;	author jym;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2009.05.13.18.51.58;	author jym;	state Exp;
branches;
next	;

1.1.1.2.4.1
date	2012.04.17.00.03.08;	author yamt;	state Exp;
branches;
next	1.1.1.2.4.2;

1.1.1.2.4.2
date	2014.05.22.15.44.59;	author yamt;	state Exp;
branches;
next	;
commitid	tYJXbWAuFvTh7yBx;

1.1.1.2.6.1
date	2012.03.07.23.18.27;	author riz;	state Exp;
branches;
next	;

1.1.1.3.2.1
date	2013.06.23.06.26.32;	author tls;	state Exp;
branches;
next	1.1.1.3.2.2;
commitid	OnlO1cBgtQRcIHUw;

1.1.1.3.2.2
date	2014.08.19.23.46.47;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.4.8.1
date	2014.08.10.07.07.10;	author tls;	state Exp;
branches;
next	;
commitid	b1wUlsZGswrdGMLx;


desc
@@


1.8
log
@merge conflicts
@
text
@
#------------------------------------------------------------------------------
# $File: netbsd,v 1.26 2019/01/01 03:11:23 christos Exp $
# netbsd:  file(1) magic for NetBSD objects
#
# All new-style magic numbers are in network byte order.
# The old-style magic numbers are indistinguishable from the same magic
# numbers used in other systems, and are handled, for all those systems,
# in aout.
#

0	name	netbsd-detail
>20	lelong	x		@@%#x
>4	lelong	>0		\b+T=%d
>8	lelong	>0		\b+D=%d
>12	lelong	>0		\b+B=%d
>16	lelong	>0		\b+S=%d
>24	lelong	>0		\b+TR=%d
>28	lelong	>0		\b+TD=%d

0	name			netbsd-4096
>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	name			netbsd-8192
>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	use			netbsd-detail

0	name			netbsd-normal
>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	use			netbsd-detail

0	name			netbsd-pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
>0	use			netbsd-detail

0	name			netbsd-core
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)

0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	use			netbsd-4096

0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	use			netbsd-pure

0	belong&0377777777	041400407	a.out NetBSD/i386
>0	use			netbsd-normal

0	belong&0377777777	041400507	a.out NetBSD/i386 core
>0	use			netbsd-core

0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
>0	use			\^netbsd-8192

0	belong&0377777777	041600410	a.out NetBSD/m68k pure
>0	use			\^netbsd-pure

0	belong&0377777777	041600407	a.out NetBSD/m68k
>0	use			\^netbsd-normal

0	belong&0377777777	041600507	a.out NetBSD/m68k core
>0	use			\^netbsd-core

0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
>0	use			\^netbsd-4096

0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
>0	use			\^netbsd-pure

0	belong&0377777777	042000407	a.out NetBSD/m68k4k
>0	use			\^netbsd-normal

0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
>0	use			\^netbsd-core

0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
>0	use			netbsd-4096

0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
>0	use			netbsd-pure

0	belong&0377777777	042200407	a.out NetBSD/ns32532
>0	use			netbsd-normal

0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
>0	use			netbsd-core

0	belong&0377777777	045200507	a.out NetBSD/powerpc core
>0	use			netbsd-core

0	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
>0	use			\^netbsd-8192

0	belong&0377777777	042400410	a.out NetBSD/SPARC pure
>0	use			\^netbsd-pure

0	belong&0377777777	042400407	a.out NetBSD/SPARC
>0	use			\^netbsd-normal

0	belong&0377777777	042400507	a.out NetBSD/SPARC core
>0	use			\^netbsd-core

0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
>0	use			netbsd-4096

0	belong&0377777777	042600410	a.out NetBSD/pmax pure
>0	use			\^netbsd-pure

0	belong&0377777777	042600407	a.out NetBSD/pmax
>0	use			netbsd-normal

0	belong&0377777777	042600507	a.out NetBSD/pmax core
>0	use			netbsd-core

0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
>0	use			netbsd-4096

0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
>0	use			netbsd-pure

0	belong&0377777777	043000407	a.out NetBSD/vax 1k
>0	use			netbsd-normal

0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
>0	use			netbsd-core

0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
>0	use			netbsd-4096

0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
>0	use			netbsd-pure

0	belong&0377777777	045400407	a.out NetBSD/vax 4k
>0	use			netbsd-normal

0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
>0	use			netbsd-core

# 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	use			\^netbsd-8192

>16	belong			>0		not stripped
0	belong&0377777777	043400410	a.out NetBSD/mips pure
>0	use			netbsd-pure

0	belong&0377777777	043400407	a.out NetBSD/mips
>0	use			netbsd-normal

0	belong&0377777777	043400507	a.out NetBSD/mips core
>0	use			netbsd-core

0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
>0	use			netbsd-4096

0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
>0	use			netbsd-pure

0	belong&0377777777	043600407	a.out NetBSD/arm32
>0	use			netbsd-normal

# 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
>0	use			netbsd-core

# Kernel core dump format
0	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
>0	belong&0x03ff0000 0x00000000	\b, Unknown
>0	belong&0x03ff0000 0x00010000	\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 0x00950000	\b, ppc BSD (Big Endian)
>0	belong&0x03ff0000 0x00960000	\b, vax BSD (4K pages)
>0	belong&0x03ff0000 0x00970000	\b, mips1 BSD
>0	belong&0x03ff0000 0x00980000	\b, mips2 BSD
>0	belong&0x03ff0000 0x00990000	\b, m88k BSD
>0	belong&0x03ff0000 0x00920000	\b, parisc BSD
>0	belong&0x03ff0000 0x009b0000	\b, sh5/64 BSD
>0	belong&0x03ff0000 0x009c0000	\b, SPARC/64 BSD
>0	belong&0x03ff0000 0x009d0000	\b, amd64 BSD
>0	belong&0x03ff0000 0x009e0000	\b, sh5/32 BSD
>0	belong&0x03ff0000 0x009f0000	\b, ia64 BSD
>0	belong&0x03ff0000 0x00b70000	\b, aarch64 BSD
>0	belong&0x03ff0000 0x00b80000	\b, or1k BSD
>0	belong&0x03ff0000 0x00b90000	\b, Risk-V BSD
>0	belong&0x03ff0000 0x00c80000	\b, hp200 BSD
>0	belong&0x03ff0000 0x012c0000	\b, hp300 BSD
>0	belong&0x03ff0000 0x020b0000	\b, hp800 HP-UX
>0	belong&0x03ff0000 0x020c0000	\b, hp200/hp300 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
>8	lelong	x			\b, segments = %d)

# little endian only for now.
0	name		ktrace
>4	leshort		7
>>6	leshort		<3		NetBSD ktrace file version %d
>>>12	string		x		from %s
>>>56	string		x		\b, emulation %s
>>>8	lelong		<65536		\b, pid=%d

56	string		netbsd
>0	use		ktrace
56	string		linux
>0	use		ktrace
56	string		sunos
>0	use		ktrace
56	string		hpux
>0	use		ktrace
@


1.7
log
@bring detail from HEAD
@
text
@d3 1
a3 1
# $File: netbsd,v 1.25 2017/09/28 02:37:47 christos Exp $
@


1.6
log
@merge conflicts for file-5.33
@
text
@d12 10
a21 1
0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
d28 6
a33 2
0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	byte			&0x80		dynamically linked executable
d36 3
a38 1
0	belong&0377777777	041400407	a.out NetBSD/i386
d45 9
a53 1
0	belong&0377777777	041400507	a.out NetBSD/i386 core
d57 12
d70 2
a71 6
>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
d73 2
a74 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
d76 2
a77 6
>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
d79 1
a79 2
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)
d82 2
a83 6
>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
d85 2
a86 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
d88 2
a89 6
>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
d91 1
a91 2
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)
d94 2
a95 6
>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
d97 2
a98 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
d100 2
a101 6
>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
d103 1
a103 2
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
d106 1
a106 1
>12	string			>\0		from '%s'
d109 2
a110 6
>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
d112 2
a113 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
d115 2
a116 6
>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
d118 1
a118 2
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)
d121 2
a122 6
>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
d124 2
a125 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
d127 2
a128 6
>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
d130 1
a130 2
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
d133 2
a134 6
>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
d136 2
a137 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
d139 2
a140 6
>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
d142 1
a142 2
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
d145 2
a146 6
>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
d148 2
a149 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
d151 2
a152 6
>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
d154 1
a154 2
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
d167 2
a168 5
>0	byte			&0x80
>>20	belong			<8192		shared library
>>20	belong			=8192		dynamically linked executable
>>20	belong			>8192		dynamically linked executable
>0	byte			^0x80		executable
d171 2
a172 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	belong			>0		not stripped
d174 2
a175 6
>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
d177 1
a177 2
>12	string			>\0		from '%s'
>32	belong			!0		(signal %d)
d180 2
a181 6
>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
d183 2
a184 3
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
d186 2
a187 6
>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
d191 1
a191 2
>12	string			>\0		from '%s'
>32	lelong			!0		(signal %d)
@


1.6.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: netbsd,v 1.26 2019/01/01 03:11:23 christos Exp $
d12 1
a12 10
0	name	netbsd-detail
>20	lelong	x		@@%#x
>4	lelong	>0		\b+T=%d
>8	lelong	>0		\b+D=%d
>12	lelong	>0		\b+B=%d
>16	lelong	>0		\b+S=%d
>24	lelong	>0		\b+TR=%d
>28	lelong	>0		\b+TD=%d

0	name			netbsd-4096
d19 2
a20 6

0	name			netbsd-8192
>0	byte			&0x80
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
d23 1
a23 3
>0	use			netbsd-detail

0	name			netbsd-normal
d30 1
a30 9
>0	use			netbsd-detail

0	name			netbsd-pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
>0	use			netbsd-detail

0	name			netbsd-core
a33 12
0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	use			netbsd-4096

0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	use			netbsd-pure

0	belong&0377777777	041400407	a.out NetBSD/i386
>0	use			netbsd-normal

0	belong&0377777777	041400507	a.out NetBSD/i386 core
>0	use			netbsd-core

d35 6
a40 2
>0	use			\^netbsd-8192

d42 3
a44 2
>0	use			\^netbsd-pure

d46 6
a51 2
>0	use			\^netbsd-normal

d53 2
a54 1
>0	use			\^netbsd-core
d57 6
a62 2
>0	use			\^netbsd-4096

d64 3
a66 2
>0	use			\^netbsd-pure

d68 6
a73 2
>0	use			\^netbsd-normal

d75 2
a76 1
>0	use			\^netbsd-core
d79 6
a84 2
>0	use			netbsd-4096

d86 3
a88 2
>0	use			netbsd-pure

d90 6
a95 2
>0	use			netbsd-normal

d97 2
a98 1
>0	use			netbsd-core
d101 1
a101 1
>0	use			netbsd-core
d104 6
a109 2
>0	use			\^netbsd-8192

d111 3
a113 2
>0	use			\^netbsd-pure

d115 6
a120 2
>0	use			\^netbsd-normal

d122 2
a123 1
>0	use			\^netbsd-core
d126 6
a131 2
>0	use			netbsd-4096

d133 3
a135 2
>0	use			\^netbsd-pure

d137 6
a142 2
>0	use			netbsd-normal

d144 2
a145 1
>0	use			netbsd-core
d148 6
a153 2
>0	use			netbsd-4096

d155 3
a157 2
>0	use			netbsd-pure

d159 6
a164 2
>0	use			netbsd-normal

d166 2
a167 1
>0	use			netbsd-core
d170 6
a175 2
>0	use			netbsd-4096

d177 3
a179 2
>0	use			netbsd-pure

d181 6
a186 2
>0	use			netbsd-normal

d188 2
a189 1
>0	use			netbsd-core
d202 5
a206 2
>0	use			\^netbsd-8192

d209 3
a211 2
>0	use			netbsd-pure

d213 6
a218 2
>0	use			netbsd-normal

d220 2
a221 1
>0	use			netbsd-core
d224 6
a229 2
>0	use			netbsd-4096

d231 3
a233 2
>0	use			netbsd-pure

d235 6
a240 2
>0	use			netbsd-normal

d244 2
a245 1
>0	use			netbsd-core
@


1.5
log
@fix offset of segment count in NetBSD crashdump header.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.24 2017/03/17 21:35:28 christos Exp $
@


1.5.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: netbsd,v 1.25 2017/09/28 02:37:47 christos Exp $
@


1.5.2.2
log
@Synch with HEAD
@
text
@d12 1
a12 10
0	name	netbsd-detail
>20	lelong	x		@@%#x
>4	lelong	>0		\b+T=%d
>8	lelong	>0		\b+D=%d
>12	lelong	>0		\b+B=%d
>16	lelong	>0		\b+S=%d
>24	lelong	>0		\b+TR=%d
>28	lelong	>0		\b+TD=%d

0	name			netbsd-4096
d19 2
a20 6

0	name			netbsd-8192
>0	byte			&0x80
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
d23 1
a23 3
>0	use			netbsd-detail

0	name			netbsd-normal
d30 1
a30 9
>0	use			netbsd-detail

0	name			netbsd-pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
>0	use			netbsd-detail

0	name			netbsd-core
a33 12
0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	use			netbsd-4096

0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	use			netbsd-pure

0	belong&0377777777	041400407	a.out NetBSD/i386
>0	use			netbsd-normal

0	belong&0377777777	041400507	a.out NetBSD/i386 core
>0	use			netbsd-core

d35 6
a40 2
>0	use			\^netbsd-8192

d42 3
a44 2
>0	use			\^netbsd-pure

d46 6
a51 2
>0	use			\^netbsd-normal

d53 2
a54 1
>0	use			\^netbsd-core
d57 6
a62 2
>0	use			\^netbsd-4096

d64 3
a66 2
>0	use			\^netbsd-pure

d68 6
a73 2
>0	use			\^netbsd-normal

d75 2
a76 1
>0	use			\^netbsd-core
d79 6
a84 2
>0	use			netbsd-4096

d86 3
a88 2
>0	use			netbsd-pure

d90 6
a95 2
>0	use			netbsd-normal

d97 2
a98 1
>0	use			netbsd-core
d101 1
a101 1
>0	use			netbsd-core
d104 6
a109 2
>0	use			\^netbsd-8192

d111 3
a113 2
>0	use			\^netbsd-pure

d115 6
a120 2
>0	use			\^netbsd-normal

d122 2
a123 1
>0	use			\^netbsd-core
d126 6
a131 2
>0	use			netbsd-4096

d133 3
a135 2
>0	use			\^netbsd-pure

d137 6
a142 2
>0	use			netbsd-normal

d144 2
a145 1
>0	use			netbsd-core
d148 6
a153 2
>0	use			netbsd-4096

d155 3
a157 2
>0	use			netbsd-pure

d159 6
a164 2
>0	use			netbsd-normal

d166 2
a167 1
>0	use			netbsd-core
d170 6
a175 2
>0	use			netbsd-4096

d177 3
a179 2
>0	use			netbsd-pure

d181 6
a186 2
>0	use			netbsd-normal

d188 2
a189 1
>0	use			netbsd-core
d202 5
a206 2
>0	use			\^netbsd-8192

d209 3
a211 2
>0	use			netbsd-pure

d213 6
a218 2
>0	use			netbsd-normal

d220 2
a221 1
>0	use			netbsd-core
d224 6
a229 2
>0	use			netbsd-4096

d231 3
a233 2
>0	use			netbsd-pure

d235 6
a240 2
>0	use			netbsd-normal

d244 2
a245 1
>0	use			netbsd-core
@


1.4
log
@merge 5.31
@
text
@d288 1
a288 1
>6	lelong	x			\b, segments = %d)
@


1.3
log
@merge conflicts
@
text
@d3 1
a3 1
# $File: netbsd,v 1.23 2015/11/29 01:55:14 christos Exp $
d13 1
a13 1
>0	byte			&0x80		
d35 1
a35 1
>0	byte			&0x80		
d57 1
a57 1
>0	byte			&0x80		
d79 1
a79 1
>0	byte			&0x80		
d104 1
a104 1
>0	byte			&0x80		
d126 1
a126 1
>0	byte			&0x80		
d148 1
a148 1
>0	byte			&0x80		
d170 1
a170 1
>0	byte			&0x80		
d192 1
a192 1
# so no rules are provided for them.  NetBSD/alpha ELF objects are 
d202 1
a202 1
>0	byte			&0x80		
@


1.2
log
@fix bogus kernel core magic entries from file HEAD.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.22 2014/12/08 20:53:52 christos Exp $
d289 17
@


1.2.4.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: netbsd,v 1.23 2015/11/29 01:55:14 christos Exp $
a288 17

# little endian only for now.
0	name		ktrace
>4	leshort		7
>>6	leshort		<3		NetBSD ktrace file version %d
>>>12	string		x		from %s
>>>56	string		x		\b, emulation %s
>>>8	lelong		<65536		\b, pid=%d

56	string		netbsd
>0	use		ktrace
56	string		linux
>0	use		ktrace
56	string		sunos
>0	use		ktrace
56	string		hpux
>0	use		ktrace
@


1.2.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: netbsd,v 1.23 2015/11/29 01:55:14 christos Exp $
a288 17

# little endian only for now.
0	name		ktrace
>4	leshort		7
>>6	leshort		<3		NetBSD ktrace file version %d
>>>12	string		x		from %s
>>>56	string		x		\b, emulation %s
>>>8	lelong		<65536		\b, pid=%d

56	string		netbsd
>0	use		ktrace
56	string		linux
>0	use		ktrace
56	string		sunos
>0	use		ktrace
56	string		hpux
>0	use		ktrace
@


1.1
log
@Initial revision
@
text
@d3 1
d7 3
a11 5
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

d103 1
a103 1
0	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
d110 1
a110 1
0	belong&0377777777	042400410	a.out NetBSD/sparc pure
d114 1
a114 1
0	belong&0377777777	042400407	a.out NetBSD/sparc
d121 1
a121 1
0	belong&0377777777	042400507	a.out NetBSD/sparc core
d246 43
@


1.1.1.1
log
@from ftp.astron.com
@
text
@@


1.1.1.2
log
@from ftp.astron.com.
- many security related fixes
- no MAXPATHLEN limits
- fixed missing text specification on ascii magic
- new ``pascal'' style string formats
- whitespace comparison fix
- more magic
@
text
@a2 1
# $File: netbsd,v 1.18 2009/09/19 16:28:11 christos Exp $
@


1.1.1.2.4.1
log
@sync with head
@
text
@d3 1
a3 1
# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
a247 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.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d3 1
a3 1
# $File: netbsd,v 1.20 2013/01/09 22:37:24 christos Exp $
a6 3
# The old-style magic numbers are indistinguishable from the same magic
# numbers used in other systems, and are handled, for all those systems,
# in aout.
d9 5
@


1.1.1.2.6.1
log
@Pull up following revision(s) (requested by christos in ticket #30):
	Update file to 5.11 (CDF security fixes)
@
text
@d3 1
a3 1
# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
a247 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.3
log
@from ftp.astron.com, CDF security fixes
@
text
@d3 1
a3 1
# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
a247 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.3.2.1
log
@resync from head
@
text
@d3 1
a3 1
# $File: netbsd,v 1.20 2013/01/09 22:37:24 christos Exp $
a6 3
# The old-style magic numbers are indistinguishable from the same magic
# numbers used in other systems, and are handled, for all those systems,
# in aout.
d9 5
@


1.1.1.3.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.21 2014/03/29 15:40:34 christos Exp $
d103 1
a103 1
0	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
d110 1
a110 1
0	belong&0377777777	042400410	a.out NetBSD/SPARC pure
d114 1
a114 1
0	belong&0377777777	042400407	a.out NetBSD/SPARC
d121 1
a121 1
0	belong&0377777777	042400507	a.out NetBSD/SPARC core
d257 1
a257 1
>0	belong&0x03ff0000 0x008a0000	\b, SPARC/32 BSD
d271 1
a271 1
>0	belong&0x03ff0000 0x00980000	\b, SPARC/64 BSD
@


1.1.1.4
log
@import file-5.14
changes are "name" + "use" keyword features, bug fixes
@
text
@d3 1
a3 1
# $File: netbsd,v 1.20 2013/01/09 22:37:24 christos Exp $
a6 3
# The old-style magic numbers are indistinguishable from the same magic
# numbers used in other systems, and are handled, for all those systems,
# in aout.
d9 5
@


1.1.1.4.8.1
log
@Rebase.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.21 2014/03/29 15:40:34 christos Exp $
d103 1
a103 1
0	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
d110 1
a110 1
0	belong&0377777777	042400410	a.out NetBSD/SPARC pure
d114 1
a114 1
0	belong&0377777777	042400407	a.out NetBSD/SPARC
d121 1
a121 1
0	belong&0377777777	042400507	a.out NetBSD/SPARC core
d257 1
a257 1
>0	belong&0x03ff0000 0x008a0000	\b, SPARC/32 BSD
d271 1
a271 1
>0	belong&0x03ff0000 0x00980000	\b, SPARC/64 BSD
@


1.1.1.5
log
@import file-5.19

2014-06-09   9:04  Christos Zoulas <christos@@zoulas.com>

	* Misc buffer overruns and missing buffer size tests in cdf parsing
	  (Francisco Alonso, Jan Kaluza)

2014-06-02  14:50  Christos Zoulas <christos@@zoulas.com>

	* Enforce limit of 8K on regex searches that have no limits
	* Allow the l modifier for regex to mean line count. Default
	  to byte count. If line count is specified, assume a max
	  of 80 characters per line to limit the byte count.
	* Don't allow conversions to be used for dates, allowing
	  the mask field to be used as an offset.

2014-05-30  12:51  Christos Zoulas <christos@@zoulas.com>

	* Make the range operator limit the length of the
	  regex search.

2014-05-14  19:23  Christos Zoulas <christos@@zoulas.com>

	* PR/347: Windows fixes
	* PR/352: Hangul word processor recognition
	* PR/354: Encoding irregularities in text files

2014-05-06  6:12  Christos Zoulas <christos@@zoulas.com>

	* Fix uninitialized title in CDF files (Jan Kaluza)

2014-05-04  14:55  Christos Zoulas <christos@@zoulas.com>

	* PR/351: Fix compilation of empty files

2014-04-30  17:39  Christos Zoulas <christos@@zoulas.com>

	* Fix integer formats: We don't specify 'l' or
	  'h' and 'hh' specifiers anymore, only 'll' for
	  quads and nothing for the rest. This is so that
	  magic writing is simpler.

2014-04-01  15:25  Christos Zoulas <christos@@zoulas.com>

	* PR/341: Jan Kaluza, fix memory leak
	* PR/342: Jan Kaluza, fix out of bounds read

2014-03-28  15:25  Christos Zoulas <christos@@zoulas.com>

	* Fix issue with long formats not matching fmtcheck
@
text
@d3 1
a3 1
# $File: netbsd,v 1.21 2014/03/29 15:40:34 christos Exp $
d103 1
a103 1
0	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
d110 1
a110 1
0	belong&0377777777	042400410	a.out NetBSD/SPARC pure
d114 1
a114 1
0	belong&0377777777	042400407	a.out NetBSD/SPARC
d121 1
a121 1
0	belong&0377777777	042400507	a.out NetBSD/SPARC core
d257 1
a257 1
>0	belong&0x03ff0000 0x008a0000	\b, SPARC/32 BSD
d271 1
a271 1
>0	belong&0x03ff0000 0x00980000	\b, SPARC/64 BSD
@


1.1.1.6
log
@Import file-5.22
@
text
@d3 1
a3 1
# $File: netbsd,v 1.22 2014/12/08 20:53:52 christos Exp $
d250 1
a250 1
>0	belong&0x03ff0000 0x00010000	\b, sun 68010/68020
d265 14
a278 18
>0	belong&0x03ff0000 0x00950000	\b, ppc BSD (Big Endian)
>0	belong&0x03ff0000 0x00960000	\b, vax BSD (4K pages)
>0	belong&0x03ff0000 0x00970000	\b, mips1 BSD
>0	belong&0x03ff0000 0x00980000	\b, mips2 BSD
>0	belong&0x03ff0000 0x00990000	\b, m88k BSD
>0	belong&0x03ff0000 0x00920000	\b, parisc BSD
>0	belong&0x03ff0000 0x009b0000	\b, sh5/64 BSD
>0	belong&0x03ff0000 0x009c0000	\b, SPARC/64 BSD
>0	belong&0x03ff0000 0x009d0000	\b, amd64 BSD
>0	belong&0x03ff0000 0x009e0000	\b, sh5/32 BSD
>0	belong&0x03ff0000 0x009f0000	\b, ia64 BSD
>0	belong&0x03ff0000 0x00b70000	\b, aarch64 BSD
>0	belong&0x03ff0000 0x00b80000	\b, or1k BSD
>0	belong&0x03ff0000 0x00b90000	\b, Risk-V BSD
>0	belong&0x03ff0000 0x00c80000	\b, hp200 BSD
>0	belong&0x03ff0000 0x012c0000	\b, hp300 BSD
>0	belong&0x03ff0000 0x020b0000	\b, hp800 HP-UX
>0	belong&0x03ff0000 0x020c0000	\b, hp200/hp300 HP-UX
@


1.1.1.7
log
@2017-02-10  12:24  Christos Zoulas <christos@@zoulas.com>

	* release 5.30

2017-02-07  23:27  Christos Zoulas <christos@@zoulas.com>

	* If we exceeded the offset in a search return no match
	  (Christoph Biedl)
	* Be more lenient on corrupt CDF files (Christoph Biedl)

2017-02-04  16:46  Christos Zoulas <christos@@zoulas.com>

	* pacify ubsan sign extension (oss-fuzz/524)

2017-02-01  12:42  Christos Zoulas <christos@@zoulas.com>

	* off by one in cdf parsing (PR/593)
	* report debugging sections in elf (PR/591)

2016-11-06  10:52  Christos Zoulas <christos@@zoulas.com>

	* Allow @@@@@@ in extensions
	* Add missing overflow check in der magic (Jonas Wagner)

2016-10-25  10:40  Christos Zoulas <christos@@zoulas.com>

	* release 5.29

2016-10-24  11:20  Christos Zoulas <christos@@zoulas.com>

	* der getlength overflow (Jonas Wagner)
	* multiple magic file load failure (Christoph Biedl)

2016-10-17  11:26  Christos Zoulas <christos@@zoulas.com>

	* CDF parsing improvements (Guy Helmer)

2016-07-20   7:26  Christos Zoulas <christos@@zoulas.com>

	* Add support for signed indirect offsets

2016-07-18   7:41  Christos Zoulas <christos@@zoulas.com>

	* cat /dev/null | file - should print empty (Christoph Biedl)

2016-07-05  15:20  Christos Zoulas <christos@@zoulas.com>

	* Bump string size from 64 to 96.

2016-06-13  20:20  Christos Zoulas <christos@@zoulas.com>

	* PR/556: Fix separators on annotations.

2016-06-13  19:40  Christos Zoulas <christos@@zoulas.com>

	* release 5.28
	* fix leak on allocation failure

2016-06-01   1:20  Christos Zoulas <christos@@zoulas.com>

	* PR/555: Avoid overflow for offset > nbytes
	* PR/550: Segv on DER parsing:
	    - use the correct variable for length
	    - set offset to 0 on failure.

2016-05-13  12:00  Christos Zoulas <christos@@zoulas.com>

	* release 5.27

2016-04-18   9:35  Christos Zoulas <christos@@zoulas.com>

	* Errors comparing DER entries or computing offsets
	  are just indications of malformed non-DER files.
	  Don't print them.
	* Offset comparison was off-by-one.
	* Fix compression code (Werner Fink)
	* Put new bytes constant in the right file (not the generated one)

2016-04-16  18:34  Christos Zoulas <christos@@zoulas.com>

	* release 5.26

2016-03-31  13:50  Christos Zoulas <christos@@zoulas.com>

	* make the number of bytes read from files configurable.

2016-03-21  13:40  Christos Zoulas <christos@@zoulas.com>

	* Add bounds checks for DER code (discovered by Thomas Jarosch)
	* Change indirect recursion limit to indirect use count and
	  bump from 15 to 50 to prevent abuse.

2016-03-13  20:39  Christos Zoulas <christos@@zoulas.com>

	* Add -00 which prints filename\0description\0

2016-03-01  13:28  Christos Zoulas <christos@@zoulas.com>

	* Fix ID3 indirect parsing

2016-01-19  10:18  Christos Zoulas <christos@@zoulas.com>

	* add DER parsing capability

2015-11-13  10:35  Christos Zoulas <christos@@zoulas.com>

	* provide dprintf(3) for the OS's that don't have it.

2015-11-11  16:25  Christos Zoulas <christos@@zoulas.com>

	* redo the compression code report decompression errors

2015-11-10  23:25  Christos Zoulas <christos@@zoulas.com>

	* REG_STARTEND code is not working as expected, delete it.

2015-11-09  16:05  Christos Zoulas <christos@@zoulas.com>

	* Add zlib support if we have it.

2015-11-05  11:22  Christos Zoulas <christos@@zoulas.com>

	* PR/492: compression forking was broken with magic_buffer.

2015-09-16   9:50  Christos Zoulas <christos@@zoulas.com>

	* release 5.25

2015-09-11  13:25  Christos Zoulas <christos@@zoulas.com>

	* add a limit to the length of regex searches

2015-09-08   9:50  Christos Zoulas <christos@@zoulas.com>

	* fix problems with --parameter (Christoph Biedl)

2015-07-11  10:35  Christos Zoulas <christos@@zoulas.com>

	* Windows fixes PR/466 (Jason Hood)

2015-07-09  10:35  Christos Zoulas <christos@@zoulas.com>

	* release 5.24

2015-06-11   8:52  Christos Zoulas <christos@@zoulas.com>

	* redo long option encoding to fix off-by-one in 5.23

2015-06-10  13:50  Christos Zoulas <christos@@zoulas.com>

	* release 5.23

2015-06-09  16:10  Christos Zoulas <christos@@zoulas.com>

	* Fix issue with regex range for magic with offset
	* Always return true from mget with USE (success to mget not match
	  indication). Fixes mime evaluation after USE magic
	* PR/459: Don't insert magic entries to the list if there are parsing
	  errors for them.

2015-06-03  16:00  Christos Zoulas <christos@@zoulas.com>

	* PR/455: Add utf-7 encoding

2015-06-03  14:30  Christos Zoulas <christos@@zoulas.com>

	* PR/455: Implement -Z, look inside, but don't report on compression
	* PR/454: Fix allocation error on bad magic.

2015-05-29  10:30  Christos Zoulas <christos@@zoulas.com>

	* handle MAGIC_CONTINUE everywhere, not just in softmagic

2015-05-21  14:30  Christos Zoulas <christos@@zoulas.com>

	* don't print descriptions for NAME types when mime.

2015-04-09  15:59  Christos Zoulas <christos@@zoulas.com>

	* Add --extension to list the known extensions for this file type
	  Idea by Andrew J Roazen

2015-02-14  12:23  Christos Zoulas <christos@@zoulas.com>

	* Bump file search buffer size to 1M.

2015-01-09  14:35  Christos Zoulas <christos@@zoulas.com>

	* Fix multiple issues with date formats reported by Christoph Biedl:
		- T_LOCAL meaning was reversed
		- Arithmetic did not work
	  Also stop adjusting daylight savings for gmt printing.

2015-01-05  13:00  Christos Zoulas <christos@@zoulas.com>

	* PR/411: Fix memory corruption from corrupt cdf file.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.23 2015/11/29 01:55:14 christos Exp $
a288 17

# little endian only for now.
0	name		ktrace
>4	leshort		7
>>6	leshort		<3		NetBSD ktrace file version %d
>>>12	string		x		from %s
>>>56	string		x		\b, emulation %s
>>>8	lelong		<65536		\b, pid=%d

56	string		netbsd
>0	use		ktrace
56	string		linux
>0	use		ktrace
56	string		sunos
>0	use		ktrace
56	string		hpux
>0	use		ktrace
@


1.1.1.8
log
@Import file-5.31; mostly oss-fuzz found bugs.
@
text
@d3 1
a3 1
# $File: netbsd,v 1.24 2017/03/17 21:35:28 christos Exp $
d13 1
a13 1
>0	byte			&0x80
d35 1
a35 1
>0	byte			&0x80
d57 1
a57 1
>0	byte			&0x80
d79 1
a79 1
>0	byte			&0x80
d104 1
a104 1
>0	byte			&0x80
d126 1
a126 1
>0	byte			&0x80
d148 1
a148 1
>0	byte			&0x80
d170 1
a170 1
>0	byte			&0x80
d192 1
a192 1
# so no rules are provided for them.  NetBSD/alpha ELF objects are
d202 1
a202 1
>0	byte			&0x80
@


1.1.1.9
log
@2018-04-15  14:52  Christos Zoulas <christos@@zoulas.com>

	* release 5.33

2018-02-24  14:50  Christos Zoulas <christos@@zoulas.com>

	* extend the support for ${x?:} expansions for magic descriptions

2018-02-21  16:25  Christos Zoulas <christos@@zoulas.com>

	* add support for ${x?:} in mime types to handle
	  pie binaries.

2017-11-03   9:23  Christos Zoulas <christos@@zoulas.com>

	* add support for negative offsets (offsets from the end of file)

2017-09-26   8:22  Christos Zoulas <christos@@zoulas.com>

	* close the file on error when writing magic (Steve Grubb)

2017-09-24  12:02  Christos Zoulas <christos@@zoulas.com>

	* seccomp support (Paul Moore)

2017-09-02  11:53  Christos Zoulas <christos@@zoulas.com>

	* release 5.32

2017-08-28  16:37  Christos Zoulas <christos@@zoulas.com>

	* Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)

2017-08-27  03:55  Christos Zoulas <christos@@zoulas.com>

	* Fix always true condition (Thomas Jarosch)

2017-05-24  17:30  Christos Zoulas <christos@@zoulas.com>

	* pickier parsing of numeric values in magic files.

2017-05-23  17:55  Christos Zoulas <christos@@zoulas.com>

	* PR/615 add magic_getflags()
@
text
@d3 1
a3 1
# $File: netbsd,v 1.25 2017/09/28 02:37:47 christos Exp $
d288 1
a288 1
>8	lelong	x			\b, segments = %d)
@


1.1.1.10
log
@2019-05-14  22:26  Christos Zoulas <christos@@zoulas.com>

	* release 5.37

2019-05-09  22:27  Christos Zoulas <christos@@zoulas.com>

	* Make sure that continuation separators are printed
	  with -k within softmagic

2019-05-06  22:27  Christos Zoulas <christos@@zoulas.com>

	* Change SIGPIPE saving and restoring during compression to use
	  sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko)
	* Cache stat(2) calls more to reduce number of calls (Denys Vlasenko)

2019-05-06  17:25  Christos Zoulas <christos@@zoulas.com>

	* PR/77: Handle --mime-type and -k correctly.

2019-05-03  15:26  Christos Zoulas <christos@@zoulas.com>

	* Switch decompression code to use vfork() because
	  tools like rpmdiff and rpmbuild call libmagic
	  with large process footprints (Denys Vlasenko)

2019-04-07  14:05  Christos Zoulas <christos@@zoulas.com>

	* PR/75: --enable-zlib, did not work.

2019-02-27  11:54  Christos Zoulas <christos@@zoulas.com>

	* Improve regex efficiency (Michael Schroeder) by:
		1. Prefixing regex searches with regular search
		   for keywords where possible
		2. Using memmem(3) where available
@
text
@d3 1
a3 1
# $File: netbsd,v 1.26 2019/01/01 03:11:23 christos Exp $
d12 1
a12 10
0	name	netbsd-detail
>20	lelong	x		@@%#x
>4	lelong	>0		\b+T=%d
>8	lelong	>0		\b+D=%d
>12	lelong	>0		\b+B=%d
>16	lelong	>0		\b+S=%d
>24	lelong	>0		\b+TR=%d
>28	lelong	>0		\b+TD=%d

0	name			netbsd-4096
d19 2
a20 6

0	name			netbsd-8192
>0	byte			&0x80
>>20	lelong			<8192		shared library
>>20	lelong			=8192		dynamically linked executable
>>20	lelong			>8192		dynamically linked executable
d23 1
a23 3
>0	use			netbsd-detail

0	name			netbsd-normal
d30 1
a30 9
>0	use			netbsd-detail

0	name			netbsd-pure
>0	byte			&0x80		dynamically linked executable
>0	byte			^0x80		executable
>16	lelong			>0		not stripped
>0	use			netbsd-detail

0	name			netbsd-core
a33 12
0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
>0	use			netbsd-4096

0	belong&0377777777	041400410	a.out NetBSD/i386 pure
>0	use			netbsd-pure

0	belong&0377777777	041400407	a.out NetBSD/i386
>0	use			netbsd-normal

0	belong&0377777777	041400507	a.out NetBSD/i386 core
>0	use			netbsd-core

d35 6
a40 2
>0	use			\^netbsd-8192

d42 3
a44 2
>0	use			\^netbsd-pure

d46 6
a51 2
>0	use			\^netbsd-normal

d53 2
a54 1
>0	use			\^netbsd-core
d57 6
a62 2
>0	use			\^netbsd-4096

d64 3
a66 2
>0	use			\^netbsd-pure

d68 6
a73 2
>0	use			\^netbsd-normal

d75 2
a76 1
>0	use			\^netbsd-core
d79 6
a84 2
>0	use			netbsd-4096

d86 3
a88 2
>0	use			netbsd-pure

d90 6
a95 2
>0	use			netbsd-normal

d97 2
a98 1
>0	use			netbsd-core
d101 1
a101 1
>0	use			netbsd-core
d104 6
a109 2
>0	use			\^netbsd-8192

d111 3
a113 2
>0	use			\^netbsd-pure

d115 6
a120 2
>0	use			\^netbsd-normal

d122 2
a123 1
>0	use			\^netbsd-core
d126 6
a131 2
>0	use			netbsd-4096

d133 3
a135 2
>0	use			\^netbsd-pure

d137 6
a142 2
>0	use			netbsd-normal

d144 2
a145 1
>0	use			netbsd-core
d148 6
a153 2
>0	use			netbsd-4096

d155 3
a157 2
>0	use			netbsd-pure

d159 6
a164 2
>0	use			netbsd-normal

d166 2
a167 1
>0	use			netbsd-core
d170 6
a175 2
>0	use			netbsd-4096

d177 3
a179 2
>0	use			netbsd-pure

d181 6
a186 2
>0	use			netbsd-normal

d188 2
a189 1
>0	use			netbsd-core
d202 5
a206 2
>0	use			\^netbsd-8192

d209 3
a211 2
>0	use			netbsd-pure

d213 6
a218 2
>0	use			netbsd-normal

d220 2
a221 1
>0	use			netbsd-core
d224 6
a229 2
>0	use			netbsd-4096

d231 3
a233 2
>0	use			netbsd-pure

d235 6
a240 2
>0	use			netbsd-normal

d244 2
a245 1
>0	use			netbsd-core
@


1.1.1.1.2.1
log
@file netbsd was added on branch jym-xensuspend on 2009-05-13 18:51:58 +0000
@
text
@d1 246
@


1.1.1.1.2.2
log
@Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
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)
@


