2 #------------------------------------------------------------------------------
3 # xenix: file(1) magic for Microsoft Xenix
5 # "Middle model" stuff, and "Xenix 8086 relocatable or 80286 small
6 # model" lifted from "magic.xenix", with comment "derived empirically;
7 # treat as folklore until proven"
9 # "small model", "large model", "huge model" stuff lifted from XXX
11 # XXX - "x.out" collides with PDP-11 archives
13 0 string core core file (Xenix)
14 0 byte 0x80 8086 relocatable (Microsoft)
15 0 leshort 0xff65 x.out
16 >2 string __.SYMDEF randomized
18 0 leshort 0x206 Microsoft a.out
19 >8 leshort 1 Middle model
20 >0x1e leshort &0x10 overlay
21 >0x1e leshort &0x2 separate
22 >0x1e leshort &0x4 pure
23 >0x1e leshort &0x800 segmented
24 >0x1e leshort &0x400 standalone
25 >0x1e leshort &0x8 fixed-stack
26 >0x1c byte &0x80 byte-swapped
27 >0x1c byte &0x40 word-swapped
28 >0x10 lelong >0 not-stripped
29 >0x1e leshort ^0xc000 pre-SysV
30 >0x1e leshort &0x4000 V2.3
31 >0x1e leshort &0x8000 V3.0
36 >0x1f byte <0x040 small model
37 >0x1f byte =0x048 large model
38 >0x1f byte =0x049 huge model
39 >0x1e leshort &0x1 executable
40 >0x1e leshort ^0x1 object file
41 >0x1e leshort &0x40 Large Text
42 >0x1e leshort &0x20 Large Data
43 >0x1e leshort &0x120 Huge Objects Enabled
44 >0x10 lelong >0 not stripped
46 0 leshort 0x140 old Microsoft 8086 x.out
47 >0x3 byte &0x4 separate
49 >0 byte &0x1 executable
50 >0 byte ^0x1 relocatable
51 >0x14 lelong >0 not stripped
54 >0x1e leshort &0x10 overlay
55 >0x1e leshort &0x2 separate
56 >0x1e leshort &0x4 pure
57 >0x1e leshort &0x800 segmented
58 >0x1e leshort &0x400 standalone
59 >0x1e leshort &0x1 executable
60 >0x1e leshort ^0x1 object file
61 >0x1e leshort &0x4000 V2.3
62 >0x1e leshort &0x8000 V3.0
68 >0x1e leshort &0x4 Large Text
69 >0x1e leshort &0x2 Large Data
70 >0x1e leshort &0x102 Huge Objects Enabled
72 0 leshort 0x580 XENIX 8086 relocatable or 80286 small model