"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/intel" (19 Aug 2018, 2782 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "intel": 5.34_vs_5.35.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: intel,v 1.17 2018/08/01 10:34:03 christos Exp $
    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 #
   17 0	leshort		0502		basic-16 executable
   18 >12	lelong		>0		not stripped
   19 #>22	leshort		>0		- version %d
   20 0	leshort		0503		basic-16 executable (TV)
   21 >12	lelong		>0		not stripped
   22 #>22	leshort		>0		- version %d
   23 0	leshort		0510		x86 executable
   24 >12	lelong		>0		not stripped
   25 0	leshort		0511		x86 executable (TV)
   26 >12	lelong		>0		not stripped
   27 0	leshort		=0512		iAPX 286 executable small model (COFF)
   28 >12	lelong		>0		not stripped
   29 #>22	leshort		>0		- version %d
   30 0	leshort		=0522		iAPX 286 executable large model (COFF)
   31 >12	lelong		>0		not stripped
   32 #>22	leshort		>0		- version %d
   33 # updated by Joerg Jenderek at Oct 2015
   34 # https://de.wikipedia.org/wiki/Common_Object_File_Format
   35 # http://www.delorie.com/djgpp/doc/coff/filhdr.html
   36 # ./msdos (version 5.25) labeled the next entry as "MS Windows COFF Intel 80386 object file"
   37 # ./intel (version 5.25) label labeled the next entry as "80386 COFF executable"
   38 # SGI labeled the next entry as "iAPX 386 executable" --Dan Quinlan
   39 0	leshort		=0514
   40 # use subroutine to display name+flags+variables for common object formated files
   41 >0	use				display-coff
   42 #>12	lelong		>0		not stripped
   43 # no hint found, that at offset 22 is version
   44 #>22	leshort		>0		- version %d
   45 0	leshort		0x0200
   46 >0	use				display-coff
   47 0	leshort		0x8664
   48 >0	use				display-coff
   49 
   50 # rom: file(1) magic for BIOS ROM Extensions found in intel machines
   51 #      mapped into memory between 0xC0000 and 0xFFFFF
   52 # From: Alex Myczko <alex@aiei.ch>
   53 # updated by Joerg Jenderek
   54 # https://en.wikipedia.org/wiki/Option_ROM
   55 0        beshort         0x55AA       BIOS (ia32) ROM Ext.
   56 !:mime	application/octet-stream
   57 !:ext	rom/bin
   58 >5       string          USB          USB
   59 >7       string          LDR          UNDI image
   60 >30      string          IBM          IBM comp. Video
   61 >26      string          Adaptec      Adaptec
   62 >28      string          Adaptec      Adaptec
   63 >42      string          PROMISE      Promise
   64 >2       byte            x            (%d*512)
   65 
   66 # Flash descriptors for Intel SPI flash roms.
   67 # From Dr. Jesus <j@hug.gs>
   68 0	lelong		0x0ff0a55a	Intel serial flash for ICH/PCH ROM <= 5 or 3400 series A-step
   69 16	lelong		0x0ff0a55a	Intel serial flash for PCH ROM