1 2#------------------------------------------------------------------------------ 3# sun: file(1) magic for Sun machines 4# 5# Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x 6# releases. (5.x uses ELF.) 7# 80 belong&077777777 0600413 sparc demand paged 9>0 byte &0x80 10>>20 belong <4096 shared library 11>>20 belong =4096 dynamically linked executable 12>>20 belong >4096 dynamically linked executable 13>0 byte ^0x80 executable 14>16 belong >0 not stripped 15 160 belong&077777777 0600410 sparc pure 17>0 byte &0x80 dynamically linked executable 18>0 byte ^0x80 executable 19>16 belong >0 not stripped 20 210 belong&077777777 0600407 sparc 22>0 byte &0x80 dynamically linked executable 23>0 byte ^0x80 executable 24>16 belong >0 not stripped 25 260 belong&077777777 0400413 mc68020 demand paged 27>0 byte &0x80 28>>20 belong <4096 shared library 29>>20 belong =4096 dynamically linked executable 30>>20 belong >4096 dynamically linked executable 31>0 byte ^0x80 executable 32>16 belong >0 not stripped 33 340 belong&077777777 0400410 mc68020 pure 35>0 byte &0x80 dynamically linked executable 36>0 byte ^0x80 executable 37>16 belong >0 not stripped 38 390 belong&077777777 0400407 mc68020 40>0 byte &0x80 dynamically linked executable 41>0 byte ^0x80 executable 42>16 belong >0 not stripped 43 440 belong&077777777 0200413 mc68010 demand paged 45>0 byte &0x80 46>>20 belong <4096 shared library 47>>20 belong =4096 dynamically linked executable 48>>20 belong >4096 dynamically linked executable 49>0 byte ^0x80 executable 50>16 belong >0 not stripped 51 520 belong&077777777 0200410 mc68010 pure 53>0 byte &0x80 dynamically linked executable 54>0 byte ^0x80 executable 55>16 belong >0 not stripped 56 570 belong&077777777 0200407 mc68010 58>0 byte &0x80 dynamically linked executable 59>0 byte ^0x80 executable 60>16 belong >0 not stripped 61 62# reworked these to avoid anything beginning with zero becoming "old sun-2" 630 belong 0407 old sun-2 executable 64>16 belong >0 not stripped 650 belong 0410 old sun-2 pure executable 66>16 belong >0 not stripped 670 belong 0413 old sun-2 demand paged executable 68>16 belong >0 not stripped 69 70# 71# Core files. "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC 72# binary executed in compatibility mode under SunOS 5.x". 73# 740 belong 0x080456 SunOS core file 75>4 belong 432 (SPARC) 76>>132 string >\0 from '%s' 77>>116 belong =3 (quit) 78>>116 belong =4 (illegal instruction) 79>>116 belong =5 (trace trap) 80>>116 belong =6 (abort) 81>>116 belong =7 (emulator trap) 82>>116 belong =8 (arithmetic exception) 83>>116 belong =9 (kill) 84>>116 belong =10 (bus error) 85>>116 belong =11 (segmentation violation) 86>>116 belong =12 (bad argument to system call) 87>>116 belong =29 (resource lost) 88>>120 belong x (T=%dK, 89>>124 belong x D=%dK, 90>>128 belong x S=%dK) 91>4 belong 826 (68K) 92>>128 string >\0 from '%s' 93>4 belong 456 (SPARC 4.x BCP) 94>>152 string >\0 from '%s' 95# Sun SunPC 960 long 0xfa33c08e SunPC 4.0 Hard Disk 970 string #SUNPC_CONFIG SunPC 4.0 Properties Values 98# Sun snoop (see RFC 1761, which describes the capture file format). 99# 1000 string snoop Snoop capture file 101>8 belong >0 - version %ld 102>12 belong 0 (IEEE 802.3) 103>12 belong 1 (IEEE 802.4) 104>12 belong 2 (IEEE 802.5) 105>12 belong 3 (IEEE 802.6) 106>12 belong 4 (Ethernet) 107>12 belong 5 (HDLC) 108>12 belong 6 (Character synchronous) 109>12 belong 7 (IBM channel-to-channel adapter) 110>12 belong 8 (FDDI) 111>12 belong 9 (Unknown) 112 113# Microsoft ICM color profile 11436 string acspMSFT Microsoft ICM Color Profile 115# Sun KCMS 11636 string acsp Kodak Color Management System, ICC Profile 117 118#--------------------------------------------------------------------------- 119# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a 120# lead Sun/Cobalt developer) who agrees that they are good and worthy of 121# inclusion. 122 123# Boot ROM images for Sun/Cobalt Linux server appliances 1240 string Cobalt\ Networks\ Inc.\nFirmware\ v Paged COBALT boot rom 125>38 string x V%.4s 126 127# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code 128# at the very end where file(1) can't get it. 1290 string CRfs COBALT boot rom data (Flat boot rom or file system) 130 131 132