aboutsummaryrefslogtreecommitdiff
path: root/magic/Magdir/xenix
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-06-24 21:24:48 +0000
committerXin LI <delphij@FreeBSD.org>2014-06-24 21:24:48 +0000
commit77409849e70d030169c23215ab4e345440ccdcd8 (patch)
treeead59ace1b329d9a88b559f04c98f06ac67556a6 /magic/Magdir/xenix
parentb60a4870e8e65b50ccb2ec0bdbe880d2e94efa9e (diff)
downloadsrc-77409849e70d030169c23215ab4e345440ccdcd8.tar.gz
src-77409849e70d030169c23215ab4e345440ccdcd8.zip
Vendor import of file 5.19.vendor/file/5.19
Notes
Notes: svn path=/vendor/file/dist/; revision=267843 svn path=/vendor/file/5.19/; revision=267844; tag=vendor/file/5.19
Diffstat (limited to 'magic/Magdir/xenix')
-rw-r--r--magic/Magdir/xenix73
1 files changed, 73 insertions, 0 deletions
diff --git a/magic/Magdir/xenix b/magic/Magdir/xenix
new file mode 100644
index 000000000000..3d238df39fbd
--- /dev/null
+++ b/magic/Magdir/xenix
@@ -0,0 +1,73 @@
+
+#------------------------------------------------------------------------------
+# $File: xenix,v 1.9 2009/09/19 16:28:13 christos Exp $
+# xenix: file(1) magic for Microsoft Xenix
+#
+# "Middle model" stuff, and "Xenix 8086 relocatable or 80286 small
+# model" lifted from "magic.xenix", with comment "derived empirically;
+# treat as folklore until proven"
+#
+# "small model", "large model", "huge model" stuff lifted from XXX
+#
+# XXX - "x.out" collides with PDP-11 archives
+#
+0 string core core file (Xenix)
+0 byte 0x80 8086 relocatable (Microsoft)
+0 leshort 0xff65 x.out
+>2 string __.SYMDEF randomized
+>0 byte x archive
+0 leshort 0x206 Microsoft a.out
+>8 leshort 1 Middle model
+>0x1e leshort &0x10 overlay
+>0x1e leshort &0x2 separate
+>0x1e leshort &0x4 pure
+>0x1e leshort &0x800 segmented
+>0x1e leshort &0x400 standalone
+>0x1e leshort &0x8 fixed-stack
+>0x1c byte &0x80 byte-swapped
+>0x1c byte &0x40 word-swapped
+>0x10 lelong >0 not-stripped
+>0x1e leshort ^0xc000 pre-SysV
+>0x1e leshort &0x4000 V2.3
+>0x1e leshort &0x8000 V3.0
+>0x1c byte &0x4 86
+>0x1c byte &0xb 186
+>0x1c byte &0x9 286
+>0x1c byte &0xa 386
+>0x1f byte <0x040 small model
+>0x1f byte =0x048 large model
+>0x1f byte =0x049 huge model
+>0x1e leshort &0x1 executable
+>0x1e leshort ^0x1 object file
+>0x1e leshort &0x40 Large Text
+>0x1e leshort &0x20 Large Data
+>0x1e leshort &0x120 Huge Objects Enabled
+>0x10 lelong >0 not stripped
+
+0 leshort 0x140 old Microsoft 8086 x.out
+>0x3 byte &0x4 separate
+>0x3 byte &0x2 pure
+>0 byte &0x1 executable
+>0 byte ^0x1 relocatable
+>0x14 lelong >0 not stripped
+
+0 lelong 0x206 b.out
+>0x1e leshort &0x10 overlay
+>0x1e leshort &0x2 separate
+>0x1e leshort &0x4 pure
+>0x1e leshort &0x800 segmented
+>0x1e leshort &0x400 standalone
+>0x1e leshort &0x1 executable
+>0x1e leshort ^0x1 object file
+>0x1e leshort &0x4000 V2.3
+>0x1e leshort &0x8000 V3.0
+>0x1c byte &0x4 86
+>0x1c byte &0xb 186
+>0x1c byte &0x9 286
+>0x1c byte &0x29 286
+>0x1c byte &0xa 386
+>0x1e leshort &0x4 Large Text
+>0x1e leshort &0x2 Large Data
+>0x1e leshort &0x102 Huge Objects Enabled
+
+0 leshort 0x580 XENIX 8086 relocatable or 80286 small model