#	$OpenBSD: OpenBSD,v 1.13 2007/02/27 21:07:10 miod Exp $

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

# 0	lelong			000000407	OpenBSD little-endian object file
# >16	lelong			>0		not stripped
# 0	belong			000000407	OpenBSD big-endian object file
# >16	belong			>0		not stripped
#
# 0	belong&0377777777	041400413	OpenBSD/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	OpenBSD/i386 pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	041400407	OpenBSD/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	OpenBSD/i386 core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	041600413	OpenBSD/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	OpenBSD/m68k pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	belong			>0		not stripped
# 0	belong&0377777777	041600407	OpenBSD/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	OpenBSD/m68k core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	042000413	OpenBSD/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	OpenBSD/m68k4k pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	belong			>0		not stripped
# 0	belong&0377777777	042000407	OpenBSD/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	OpenBSD/m68k4k core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	042200413	OpenBSD/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	OpenBSD/ns32532 pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	042200407	OpenBSD/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	OpenBSD/ns32532 core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	042400413	OpenBSD/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	OpenBSD/sparc pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	belong			>0		not stripped
# 0	belong&0377777777	042400407	OpenBSD/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	OpenBSD/sparc core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	042600413	OpenBSD/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	OpenBSD/pmax pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	042600407	OpenBSD/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	OpenBSD/pmax core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	043000413	OpenBSD/vax1k 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	OpenBSD/vax1k pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	043000407	OpenBSD/vax1k
# >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	OpenBSD/vax1k core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	045400413	OpenBSD/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	045400410	OpenBSD/vax pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	045400407	OpenBSD/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	045400507	OpenBSD/vax core
# >12	string			>\0		from '%s'
#
# # OpenBSD/powerpc core files
# 0	belong&0377777777	045200507	OpenBSD/powerpc core
# >12	string			>\0		from '%s'
#
# # OpenBSD/sparc64 core files
# 0	belong&0377777777	045600507	OpenBSD/sparc64 core
# >12	string			>\0		from '%s'
#
# # OpenBSD/hppa core files
# 0	belong&0377777777	046400507	OpenBSD/hppa core
# >12	string			>\0		from '%s'
#
# # OpenBSD/mips64
# 0	belong&0377777777	047400413	OpenBSD/mips64 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	047400410	OpenBSD/mips64 pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	belong			>0		not stripped
# 0	belong&0377777777	047400407	OpenBSD/mips64
# >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	047400507	OpenBSD/mips64 core
# >12	string			>\0		from '%s'
#
# 0	belong&0377777777	043600413	OpenBSD/arm 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	OpenBSD/arm pure
# >0	byte			&0x80		dynamically linked executable
# >0	byte			^0x80		executable
# >16	lelong			>0		not stripped
# 0	belong&0377777777	043600407	OpenBSD/arm
# >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	OpenBSD/arm core
# >12	string			>\0		from '%s'
# 0	belong&0377777777	047200507	OpenBSD/amd64 core
# >12	string			>\0		from '%s'
# 0	belong&0377777777	044200507	OpenBSD/sh core
# >12	string			>\0		from '%s'
