1ef01931fSBen Gras 2ef01931fSBen Gras#------------------------------------------------------------------------------ 3*0a6a1f1dSLionel Sambuc# $File: sun,v 1.27 2014/04/30 21:41:02 christos Exp $ 4ef01931fSBen Gras# sun: file(1) magic for Sun machines 5ef01931fSBen Gras# 6ef01931fSBen Gras# Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x 784d9c625SLionel Sambuc# releases. (5.x uses ELF.) Entries for executables without an 884d9c625SLionel Sambuc# architecture type, used before the 68020-based Sun-3's came out, 984d9c625SLionel Sambuc# are in aout, as they're indistinguishable from other big-endian 1084d9c625SLionel Sambuc# 32-bit a.out files. 11ef01931fSBen Gras# 12*0a6a1f1dSLionel Sambuc0 belong&077777777 0600413 a.out SunOS SPARC demand paged 13ef01931fSBen Gras>0 byte &0x80 14ef01931fSBen Gras>>20 belong <4096 shared library 15ef01931fSBen Gras>>20 belong =4096 dynamically linked executable 16ef01931fSBen Gras>>20 belong >4096 dynamically linked executable 17ef01931fSBen Gras>0 byte ^0x80 executable 18ef01931fSBen Gras>16 belong >0 not stripped 19ef01931fSBen Gras 20*0a6a1f1dSLionel Sambuc0 belong&077777777 0600410 a.out SunOS SPARC pure 21ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 22ef01931fSBen Gras>0 byte ^0x80 executable 23ef01931fSBen Gras>16 belong >0 not stripped 24ef01931fSBen Gras 25*0a6a1f1dSLionel Sambuc0 belong&077777777 0600407 a.out SunOS SPARC 26ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 27ef01931fSBen Gras>0 byte ^0x80 executable 28ef01931fSBen Gras>16 belong >0 not stripped 29ef01931fSBen Gras 3084d9c625SLionel Sambuc0 belong&077777777 0400413 a.out SunOS mc68020 demand paged 31ef01931fSBen Gras>0 byte &0x80 32ef01931fSBen Gras>>20 belong <4096 shared library 33ef01931fSBen Gras>>20 belong =4096 dynamically linked executable 34ef01931fSBen Gras>>20 belong >4096 dynamically linked executable 35ef01931fSBen Gras>0 byte ^0x80 executable 36ef01931fSBen Gras>16 belong >0 not stripped 37ef01931fSBen Gras 3884d9c625SLionel Sambuc0 belong&077777777 0400410 a.out SunOS mc68020 pure 39ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 40ef01931fSBen Gras>0 byte ^0x80 executable 41ef01931fSBen Gras>16 belong >0 not stripped 42ef01931fSBen Gras 4384d9c625SLionel Sambuc0 belong&077777777 0400407 a.out SunOS mc68020 44ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 45ef01931fSBen Gras>0 byte ^0x80 executable 46ef01931fSBen Gras>16 belong >0 not stripped 47ef01931fSBen Gras 4884d9c625SLionel Sambuc0 belong&077777777 0200413 a.out SunOS mc68010 demand paged 49ef01931fSBen Gras>0 byte &0x80 50ef01931fSBen Gras>>20 belong <4096 shared library 51ef01931fSBen Gras>>20 belong =4096 dynamically linked executable 52ef01931fSBen Gras>>20 belong >4096 dynamically linked executable 53ef01931fSBen Gras>0 byte ^0x80 executable 54ef01931fSBen Gras>16 belong >0 not stripped 55ef01931fSBen Gras 5684d9c625SLionel Sambuc0 belong&077777777 0200410 a.out SunOS mc68010 pure 57ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 58ef01931fSBen Gras>0 byte ^0x80 executable 59ef01931fSBen Gras>16 belong >0 not stripped 60ef01931fSBen Gras 6184d9c625SLionel Sambuc0 belong&077777777 0200407 a.out SunOS mc68010 62ef01931fSBen Gras>0 byte &0x80 dynamically linked executable 63ef01931fSBen Gras>0 byte ^0x80 executable 64ef01931fSBen Gras>16 belong >0 not stripped 65ef01931fSBen Gras 66ef01931fSBen Gras# 67ef01931fSBen Gras# Core files. "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC 68ef01931fSBen Gras# binary executed in compatibility mode under SunOS 5.x". 69ef01931fSBen Gras# 70ef01931fSBen Gras0 belong 0x080456 SunOS core file 71ef01931fSBen Gras>4 belong 432 (SPARC) 72ef01931fSBen Gras>>132 string >\0 from '%s' 73ef01931fSBen Gras>>116 belong =3 (quit) 74ef01931fSBen Gras>>116 belong =4 (illegal instruction) 75ef01931fSBen Gras>>116 belong =5 (trace trap) 76ef01931fSBen Gras>>116 belong =6 (abort) 77ef01931fSBen Gras>>116 belong =7 (emulator trap) 78ef01931fSBen Gras>>116 belong =8 (arithmetic exception) 79ef01931fSBen Gras>>116 belong =9 (kill) 80ef01931fSBen Gras>>116 belong =10 (bus error) 81ef01931fSBen Gras>>116 belong =11 (segmentation violation) 82ef01931fSBen Gras>>116 belong =12 (bad argument to system call) 83ef01931fSBen Gras>>116 belong =29 (resource lost) 84ef01931fSBen Gras>>120 belong x (T=%dK, 85ef01931fSBen Gras>>124 belong x D=%dK, 86ef01931fSBen Gras>>128 belong x S=%dK) 87ef01931fSBen Gras>4 belong 826 (68K) 88ef01931fSBen Gras>>128 string >\0 from '%s' 89ef01931fSBen Gras>4 belong 456 (SPARC 4.x BCP) 90ef01931fSBen Gras>>152 string >\0 from '%s' 91ef01931fSBen Gras# Sun SunPC 92ef01931fSBen Gras0 long 0xfa33c08e SunPC 4.0 Hard Disk 93ef01931fSBen Gras0 string #SUNPC_CONFIG SunPC 4.0 Properties Values 9484d9c625SLionel Sambuc# Sun snoop (see RFC 1761, which describes the capture file format, 9584d9c625SLionel Sambuc# RFC 3827, which describes some additional datalink types, and 9684d9c625SLionel Sambuc# http://www.iana.org/assignments/snoop-datalink-types/snoop-datalink-types.xml, 9784d9c625SLionel Sambuc# which is the IANA registry of Snoop datalink types) 98ef01931fSBen Gras# 99ef01931fSBen Gras0 string snoop Snoop capture file 100*0a6a1f1dSLionel Sambuc>8 belong >0 - version %d 101ef01931fSBen Gras>12 belong 0 (IEEE 802.3) 102ef01931fSBen Gras>12 belong 1 (IEEE 802.4) 103ef01931fSBen Gras>12 belong 2 (IEEE 802.5) 104ef01931fSBen Gras>12 belong 3 (IEEE 802.6) 105ef01931fSBen Gras>12 belong 4 (Ethernet) 106ef01931fSBen Gras>12 belong 5 (HDLC) 107ef01931fSBen Gras>12 belong 6 (Character synchronous) 108ef01931fSBen Gras>12 belong 7 (IBM channel-to-channel adapter) 109ef01931fSBen Gras>12 belong 8 (FDDI) 11084d9c625SLionel Sambuc>12 belong 9 (Other) 111*0a6a1f1dSLionel Sambuc>12 belong 10 (type %d) 112*0a6a1f1dSLionel Sambuc>12 belong 11 (type %d) 113*0a6a1f1dSLionel Sambuc>12 belong 12 (type %d) 114*0a6a1f1dSLionel Sambuc>12 belong 13 (type %d) 115*0a6a1f1dSLionel Sambuc>12 belong 14 (type %d) 116*0a6a1f1dSLionel Sambuc>12 belong 15 (type %d) 11784d9c625SLionel Sambuc>12 belong 16 (Fibre Channel) 11884d9c625SLionel Sambuc>12 belong 17 (ATM) 11984d9c625SLionel Sambuc>12 belong 18 (ATM Classical IP) 120*0a6a1f1dSLionel Sambuc>12 belong 19 (type %d) 121*0a6a1f1dSLionel Sambuc>12 belong 20 (type %d) 122*0a6a1f1dSLionel Sambuc>12 belong 21 (type %d) 123*0a6a1f1dSLionel Sambuc>12 belong 22 (type %d) 124*0a6a1f1dSLionel Sambuc>12 belong 23 (type %d) 125*0a6a1f1dSLionel Sambuc>12 belong 24 (type %d) 126*0a6a1f1dSLionel Sambuc>12 belong 25 (type %d) 12784d9c625SLionel Sambuc>12 belong 26 (IP over Infiniband) 128*0a6a1f1dSLionel Sambuc>12 belong >26 (type %d) 129ef01931fSBen Gras 130ef01931fSBen Gras#--------------------------------------------------------------------------- 131ef01931fSBen Gras# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a 132ef01931fSBen Gras# lead Sun/Cobalt developer) who agrees that they are good and worthy of 133ef01931fSBen Gras# inclusion. 134ef01931fSBen Gras 135ef01931fSBen Gras# Boot ROM images for Sun/Cobalt Linux server appliances 136ef01931fSBen Gras0 string Cobalt\ Networks\ Inc.\nFirmware\ v Paged COBALT boot rom 137ef01931fSBen Gras>38 string x V%.4s 138ef01931fSBen Gras 139ef01931fSBen Gras# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code 140ef01931fSBen Gras# at the very end where file(1) can't get it. 141ef01931fSBen Gras0 string CRfs COBALT boot rom data (Flat boot rom or file system) 142