xenix 2.1 KB

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