xref: /openbsd/usr.bin/file/magdir/intel (revision 7b36286a)
1#	$OpenBSD: intel,v 1.3 2004/06/03 03:14:20 tedu Exp $
2
3#------------------------------------------------------------------------------
4# intel:  file(1) magic for x86 Unix
5#
6# Various flavors of x86 UNIX executable/object (other than Xenix, which
7# is in "microsoft").  DOS is in "msdos"; the ambitious soul can do
8# Windows as well.
9#
10# Windows NT belongs elsewhere, as you need x86 and MIPS and Alpha and
11# whatever comes next (HP-PA Hummingbird?).  OS/2 may also go elsewhere
12# as well, if, as, and when IBM makes it portable.
13#
14# The `versions' should be un-commented if they work for you.
15# (Was the problem just one of endianness?)
16#
170	leshort		0502		basic-16 executable
18>12	lelong		>0		not stripped
19#>22	leshort		>0		- version %ld
200	leshort		0503		basic-16 executable (TV)
21>12	lelong		>0		not stripped
22#>22	leshort		>0		- version %ld
230	leshort		0510		x86 executable
24>12	lelong		>0		not stripped
250	leshort		0511		x86 executable (TV)
26>12	lelong		>0		not stripped
270	leshort		=0512		iAPX 286 executable small model (COFF)
28>12	lelong		>0		not stripped
29#>22	leshort		>0		- version %ld
300	leshort		=0522		iAPX 286 executable large model (COFF)
31>12	lelong		>0		not stripped
32#>22	leshort		>0		- version %ld
33# SGI labeled the next entry as "iAPX 386 executable" --Dan Quinlan
340	leshort		=0514		80386 COFF executable
35>12	lelong		>0		not stripped
36>22	leshort		>0		- version %ld
37
38# rom: file(1) magic for BIOS ROM Extensions found in intel machines
39#      mapped into memory between 0xC0000 and 0xFFFFF
40# From Gürkan Sengün <gurkan@linuks.mine.nu>, www.linuks.mine.nu
410        beshort         0x55AA       BIOS (ia32) ROM Ext.
42>5       string          USB          USB
43>7       string          LDR          UNDI image
44>30      string          IBM          IBM comp. Video
45>26      string          Adaptec      Adaptec
46>28      string          Adaptec      Adaptec
47>42      string          PROMISE      Promise
48>2       byte            x            (%d*512)
49