1 1.1 christos 2 1.1 christos #------------------------------------------------------------------------------ 3 1.1.1.6.8.1 pgoyette # $File: intel,v 1.16 2017/11/14 15:48:36 christos Exp $ 4 1.1 christos # intel: file(1) magic for x86 Unix 5 1.1 christos # 6 1.1 christos # Various flavors of x86 UNIX executable/object (other than Xenix, which 7 1.1 christos # is in "microsoft"). DOS is in "msdos"; the ambitious soul can do 8 1.1 christos # Windows as well. 9 1.1 christos # 10 1.1 christos # Windows NT belongs elsewhere, as you need x86 and MIPS and Alpha and 11 1.1 christos # whatever comes next (HP-PA Hummingbird?). OS/2 may also go elsewhere 12 1.1 christos # as well, if, as, and when IBM makes it portable. 13 1.1 christos # 14 1.1 christos # The `versions' should be un-commented if they work for you. 15 1.1 christos # (Was the problem just one of endianness?) 16 1.1 christos # 17 1.1 christos 0 leshort 0502 basic-16 executable 18 1.1 christos >12 lelong >0 not stripped 19 1.1.1.4 christos #>22 leshort >0 - version %d 20 1.1 christos 0 leshort 0503 basic-16 executable (TV) 21 1.1 christos >12 lelong >0 not stripped 22 1.1.1.4 christos #>22 leshort >0 - version %d 23 1.1 christos 0 leshort 0510 x86 executable 24 1.1 christos >12 lelong >0 not stripped 25 1.1 christos 0 leshort 0511 x86 executable (TV) 26 1.1 christos >12 lelong >0 not stripped 27 1.1 christos 0 leshort =0512 iAPX 286 executable small model (COFF) 28 1.1 christos >12 lelong >0 not stripped 29 1.1.1.4 christos #>22 leshort >0 - version %d 30 1.1 christos 0 leshort =0522 iAPX 286 executable large model (COFF) 31 1.1 christos >12 lelong >0 not stripped 32 1.1.1.4 christos #>22 leshort >0 - version %d 33 1.1.1.5 christos # updated by Joerg Jenderek at Oct 2015 34 1.1.1.5 christos # https://de.wikipedia.org/wiki/Common_Object_File_Format 35 1.1.1.5 christos # http://www.delorie.com/djgpp/doc/coff/filhdr.html 36 1.1.1.5 christos # ./msdos (version 5.25) labeled the next entry as "MS Windows COFF Intel 80386 object file" 37 1.1.1.5 christos # ./intel (version 5.25) label labeled the next entry as "80386 COFF executable" 38 1.1 christos # SGI labeled the next entry as "iAPX 386 executable" --Dan Quinlan 39 1.1.1.6 christos 0 leshort =0514 40 1.1.1.6 christos # use subroutine to display name+flags+variables for common object formated files 41 1.1.1.5 christos >0 use display-coff 42 1.1.1.5 christos #>12 lelong >0 not stripped 43 1.1.1.5 christos # no hint found, that at offset 22 is version 44 1.1.1.5 christos #>22 leshort >0 - version %d 45 1.1 christos 46 1.1 christos # rom: file(1) magic for BIOS ROM Extensions found in intel machines 47 1.1 christos # mapped into memory between 0xC0000 and 0xFFFFF 48 1.1.1.6.8.1 pgoyette # From: Alex Myczko <alex (a] aiei.ch> 49 1.1.1.5 christos # updated by Joerg Jenderek 50 1.1.1.5 christos # https://en.wikipedia.org/wiki/Option_ROM 51 1.1 christos 0 beshort 0x55AA BIOS (ia32) ROM Ext. 52 1.1.1.5 christos !:mime application/octet-stream 53 1.1.1.5 christos !:ext rom/bin 54 1.1 christos >5 string USB USB 55 1.1 christos >7 string LDR UNDI image 56 1.1 christos >30 string IBM IBM comp. Video 57 1.1 christos >26 string Adaptec Adaptec 58 1.1 christos >28 string Adaptec Adaptec 59 1.1 christos >42 string PROMISE Promise 60 1.1 christos >2 byte x (%d*512) 61 1.1.1.2 christos 62 1.1.1.2 christos # Flash descriptors for Intel SPI flash roms. 63 1.1.1.2 christos # From Dr. Jesus <j (a] hug.gs> 64 1.1.1.2 christos 0 lelong 0x0ff0a55a Intel serial flash for ICH/PCH ROM <= 5 or 3400 series A-step 65 1.1.1.2 christos 16 lelong 0x0ff0a55a Intel serial flash for PCH ROM 66