1# $OpenBSD: OpenBSD,v 1.13 2007/02/27 21:07:10 miod Exp $ 2 3#------------------------------------------------------------------------------ 4# OpenBSD: file(1) magic for OpenBSD objects 5# 6# All new-style magic numbers are in network byte order. 7# 8 90 lelong 000000407 OpenBSD little-endian object file 10>16 lelong >0 not stripped 110 belong 000000407 OpenBSD big-endian object file 12>16 belong >0 not stripped 13 140 belong&0377777777 041400413 OpenBSD/i386 demand paged 15>0 byte &0x80 16>>20 lelong <4096 shared library 17>>20 lelong =4096 dynamically linked executable 18>>20 lelong >4096 dynamically linked executable 19>0 byte ^0x80 executable 20>16 lelong >0 not stripped 210 belong&0377777777 041400410 OpenBSD/i386 pure 22>0 byte &0x80 dynamically linked executable 23>0 byte ^0x80 executable 24>16 lelong >0 not stripped 250 belong&0377777777 041400407 OpenBSD/i386 26>0 byte &0x80 dynamically linked executable 27>0 byte ^0x80 28>>0 byte &0x40 position independent 29>>20 lelong !0 executable 30>>20 lelong =0 object file 31>16 lelong >0 not stripped 320 belong&0377777777 041400507 OpenBSD/i386 core 33>12 string >\0 from '%s' 34 350 belong&0377777777 041600413 OpenBSD/m68k demand paged 36>0 byte &0x80 37>>20 belong <8192 shared library 38>>20 belong =8192 dynamically linked executable 39>>20 belong >8192 dynamically linked executable 40>0 byte ^0x80 executable 41>16 belong >0 not stripped 420 belong&0377777777 041600410 OpenBSD/m68k pure 43>0 byte &0x80 dynamically linked executable 44>0 byte ^0x80 executable 45>16 belong >0 not stripped 460 belong&0377777777 041600407 OpenBSD/m68k 47>0 byte &0x80 dynamically linked executable 48>0 byte ^0x80 49>>0 byte &0x40 position independent 50>>20 belong !0 executable 51>>20 belong =0 object file 52>16 belong >0 not stripped 530 belong&0377777777 041600507 OpenBSD/m68k core 54>12 string >\0 from '%s' 55 560 belong&0377777777 046200413 OpenBSD/m88k demand paged 57>0 byte &0x80 58>>20 belong <8192 shared library 59>>20 belong =8192 dynamically linked executable 60>>20 belong >8192 dynamically linked executable 61>0 byte ^0x80 executable 62>16 belong >0 not stripped 630 belong&0377777777 046200410 OpenBSD/m88k pure 64>0 byte &0x80 dynamically linked executable 65>0 byte ^0x80 executable 66>16 belong >0 not stripped 670 belong&0377777777 046200407 OpenBSD/m88k 68>0 byte &0x80 dynamically linked executable 69>0 byte ^0x80 70>>0 byte &0x40 position independent 71>>20 belong !0 executable 72>>20 belong =0 object file 73>16 belong >0 not stripped 740 belong&0377777777 046200507 OpenBSD/m88k core 75>12 string >\0 from '%s' 76 770 belong&0377777777 042000413 OpenBSD/m68k4k demand paged 78>0 byte &0x80 79>>20 belong <4096 shared library 80>>20 belong =4096 dynamically linked executable 81>>20 belong >4096 dynamically linked executable 82>0 byte ^0x80 executable 83>16 belong >0 not stripped 840 belong&0377777777 042000410 OpenBSD/m68k4k pure 85>0 byte &0x80 dynamically linked executable 86>0 byte ^0x80 executable 87>16 belong >0 not stripped 880 belong&0377777777 042000407 OpenBSD/m68k4k 89>0 byte &0x80 dynamically linked executable 90>0 byte ^0x80 91>>0 byte &0x40 position independent 92>>20 belong !0 executable 93>>20 belong =0 object file 94>16 belong >0 not stripped 950 belong&0377777777 042000507 OpenBSD/m68k4k core 96>12 string >\0 from '%s' 97 980 belong&0377777777 042200413 OpenBSD/ns32532 demand paged 99>0 byte &0x80 100>>20 lelong <4096 shared library 101>>20 lelong =4096 dynamically linked executable 102>>20 lelong >4096 dynamically linked executable 103>0 byte ^0x80 executable 104>16 lelong >0 not stripped 1050 belong&0377777777 042200410 OpenBSD/ns32532 pure 106>0 byte &0x80 dynamically linked executable 107>0 byte ^0x80 executable 108>16 lelong >0 not stripped 1090 belong&0377777777 042200407 OpenBSD/ns32532 110>0 byte &0x80 dynamically linked executable 111>0 byte ^0x80 112>>0 byte &0x40 position independent 113>>20 lelong !0 executable 114>>20 lelong =0 object file 115>16 lelong >0 not stripped 1160 belong&0377777777 042200507 OpenBSD/ns32532 core 117>12 string >\0 from '%s' 118 1190 belong&0377777777 042400413 OpenBSD/sparc demand paged 120>0 byte &0x80 121>>20 belong <8192 shared library 122>>20 belong =8192 dynamically linked executable 123>>20 belong >8192 dynamically linked executable 124>0 byte ^0x80 executable 125>16 belong >0 not stripped 1260 belong&0377777777 042400410 OpenBSD/sparc pure 127>0 byte &0x80 dynamically linked executable 128>0 byte ^0x80 executable 129>16 belong >0 not stripped 1300 belong&0377777777 042400407 OpenBSD/sparc 131>0 byte &0x80 dynamically linked executable 132>0 byte ^0x80 133>>0 byte &0x40 position independent 134>>20 belong !0 executable 135>>20 belong =0 object file 136>16 belong >0 not stripped 1370 belong&0377777777 042400507 OpenBSD/sparc core 138>12 string >\0 from '%s' 139 1400 belong&0377777777 042600413 OpenBSD/pmax demand paged 141>0 byte &0x80 142>>20 lelong <4096 shared library 143>>20 lelong =4096 dynamically linked executable 144>>20 lelong >4096 dynamically linked executable 145>0 byte ^0x80 executable 146>16 lelong >0 not stripped 1470 belong&0377777777 042600410 OpenBSD/pmax pure 148>0 byte &0x80 dynamically linked executable 149>0 byte ^0x80 executable 150>16 lelong >0 not stripped 1510 belong&0377777777 042600407 OpenBSD/pmax 152>0 byte &0x80 dynamically linked executable 153>0 byte ^0x80 154>>0 byte &0x40 position independent 155>>20 lelong !0 executable 156>>20 lelong =0 object file 157>16 lelong >0 not stripped 1580 belong&0377777777 042600507 OpenBSD/pmax core 159>12 string >\0 from '%s' 160 1610 belong&0377777777 043000413 OpenBSD/vax1k demand paged 162>0 byte &0x80 163>>20 lelong <4096 shared library 164>>20 lelong =4096 dynamically linked executable 165>>20 lelong >4096 dynamically linked executable 166>0 byte ^0x80 executable 167>16 lelong >0 not stripped 1680 belong&0377777777 043000410 OpenBSD/vax1k pure 169>0 byte &0x80 dynamically linked executable 170>0 byte ^0x80 executable 171>16 lelong >0 not stripped 1720 belong&0377777777 043000407 OpenBSD/vax1k 173>0 byte &0x80 dynamically linked executable 174>0 byte ^0x80 175>>0 byte &0x40 position independent 176>>20 lelong !0 executable 177>>20 lelong =0 object file 178>16 lelong >0 not stripped 1790 belong&0377777777 043000507 OpenBSD/vax1k core 180>12 string >\0 from '%s' 181 1820 belong&0377777777 045400413 OpenBSD/vax demand paged 183>0 byte &0x80 184>>20 lelong <4096 shared library 185>>20 lelong =4096 dynamically linked executable 186>>20 lelong >4096 dynamically linked executable 187>0 byte ^0x80 executable 188>16 lelong >0 not stripped 1890 belong&0377777777 045400410 OpenBSD/vax pure 190>0 byte &0x80 dynamically linked executable 191>0 byte ^0x80 executable 192>16 lelong >0 not stripped 1930 belong&0377777777 045400407 OpenBSD/vax 194>0 byte &0x80 dynamically linked executable 195>0 byte ^0x80 196>>0 byte &0x40 position independent 197>>20 lelong !0 executable 198>>20 lelong =0 object file 199>16 lelong >0 not stripped 2000 belong&0377777777 045400507 OpenBSD/vax core 201>12 string >\0 from '%s' 202 203# OpenBSD/alpha does not support (and has never supported) a.out objects, 204# so no rules are provided for them. OpenBSD/alpha ELF objects are 205# dealt with in "elf". 2060 leshort 0x00070185 ECOFF OpenBSD/alpha binary 207>10 leshort 0x0001 not stripped 208>10 leshort 0x0000 stripped 2090 belong&0377777777 043200507 OpenBSD/alpha core 210>12 string >\0 from '%s' 211 212# OpenBSD/powerpc core files 2130 belong&0377777777 045200507 OpenBSD/powerpc core 214>12 string >\0 from '%s' 215 216# OpenBSD/sparc64 core files 2170 belong&0377777777 045600507 OpenBSD/sparc64 core 218>12 string >\0 from '%s' 219 220# OpenBSD/hppa core files 2210 belong&0377777777 046400507 OpenBSD/hppa core 222>12 string >\0 from '%s' 223 224# OpenBSD/mips64 2250 belong&0377777777 047400413 OpenBSD/mips64 demand paged 226>0 byte &0x80 227>>20 belong <8192 shared library 228>>20 belong =8192 dynamically linked executable 229>>20 belong >8192 dynamically linked executable 230>0 byte ^0x80 executable 231>16 belong >0 not stripped 2320 belong&0377777777 047400410 OpenBSD/mips64 pure 233>0 byte &0x80 dynamically linked executable 234>0 byte ^0x80 executable 235>16 belong >0 not stripped 2360 belong&0377777777 047400407 OpenBSD/mips64 237>0 byte &0x80 dynamically linked executable 238>0 byte ^0x80 239>>0 byte &0x40 position independent 240>>20 belong !0 executable 241>>20 belong =0 object file 242>16 belong >0 not stripped 2430 belong&0377777777 047400507 OpenBSD/mips64 core 244>12 string >\0 from '%s' 245 2460 belong&0377777777 043600413 OpenBSD/arm demand paged 247>0 byte &0x80 248>>20 lelong <8192 shared library 249>>20 lelong =8192 dynamically linked executable 250>>20 lelong >8192 dynamically linked executable 251>0 byte ^0x80 executable 252>16 lelong >0 not stripped 2530 belong&0377777777 043600410 OpenBSD/arm pure 254>0 byte &0x80 dynamically linked executable 255>0 byte ^0x80 executable 256>16 lelong >0 not stripped 2570 belong&0377777777 043600407 OpenBSD/arm 258>0 byte &0x80 dynamically linked executable 259>0 byte ^0x80 260>>0 byte &0x40 position independent 261>>20 lelong !0 executable 262>>20 lelong =0 object file 263>16 lelong >0 not stripped 2640 belong&0377777777 043600507 OpenBSD/arm core 265>12 string >\0 from '%s' 2660 belong&0377777777 047200507 OpenBSD/amd64 core 267>12 string >\0 from '%s' 2680 belong&0377777777 044200507 OpenBSD/sh core 269>12 string >\0 from '%s' 270