olf 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #------------------------------------------------------------------------------
  2. # olf: file(1) magic for OLF executables
  3. #
  4. # We have to check the byte order flag to see what byte order all the
  5. # other stuff in the header is in.
  6. #
  7. # MIPS R3000 may also be for MIPS R2000.
  8. # What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
  9. #
  10. # Created by Erik Theisen <etheisen@openbsd.org>
  11. # Based on elf from Daniel Quinlan <quinlan@yggdrasil.com>
  12. 0 string \177OLF OLF
  13. >4 byte 0 invalid class
  14. >4 byte 1 32-bit
  15. >4 byte 2 64-bit
  16. >7 byte 0 invalid os
  17. >7 byte 1 OpenBSD
  18. >7 byte 2 NetBSD
  19. >7 byte 3 FreeBSD
  20. >7 byte 4 4.4BSD
  21. >7 byte 5 Linux
  22. >7 byte 6 SVR4
  23. >7 byte 7 esix
  24. >7 byte 8 Solaris
  25. >7 byte 9 Irix
  26. >7 byte 10 SCO
  27. >7 byte 11 Dell
  28. >7 byte 12 NCR
  29. >5 byte 0 invalid byte order
  30. >5 byte 1 LSB
  31. >>16 leshort 0 no file type,
  32. >>16 leshort 1 relocatable,
  33. >>16 leshort 2 executable,
  34. >>16 leshort 3 shared object,
  35. # Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
  36. # corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
  37. >>16 leshort 4 core file
  38. >>>(0x38+0xcc) string >\0 of '%s'
  39. >>>(0x38+0x10) lelong >0 (signal %d),
  40. >>16 leshort &0xff00 processor-specific,
  41. >>18 leshort 0 no machine,
  42. >>18 leshort 1 AT&T WE32100 - invalid byte order,
  43. >>18 leshort 2 SPARC - invalid byte order,
  44. >>18 leshort 3 Intel 80386,
  45. >>18 leshort 4 Motorola 68000 - invalid byte order,
  46. >>18 leshort 5 Motorola 88000 - invalid byte order,
  47. >>18 leshort 6 Intel 80486,
  48. >>18 leshort 7 Intel 80860,
  49. >>18 leshort 8 MIPS R3000_BE - invalid byte order,
  50. >>18 leshort 9 Amdahl - invalid byte order,
  51. >>18 leshort 10 MIPS R3000_LE,
  52. >>18 leshort 11 RS6000 - invalid byte order,
  53. >>18 leshort 15 PA-RISC - invalid byte order,
  54. >>18 leshort 16 nCUBE,
  55. >>18 leshort 17 VPP500,
  56. >>18 leshort 18 SPARC32PLUS,
  57. >>18 leshort 20 PowerPC,
  58. >>18 leshort 0x9026 Alpha,
  59. >>20 lelong 0 invalid version
  60. >>20 lelong 1 version 1
  61. >>36 lelong 1 MathCoPro/FPU/MAU Required
  62. >8 string >\0 (%s)
  63. >5 byte 2 MSB
  64. >>16 beshort 0 no file type,
  65. >>16 beshort 1 relocatable,
  66. >>16 beshort 2 executable,
  67. >>16 beshort 3 shared object,
  68. >>16 beshort 4 core file,
  69. >>>(0x38+0xcc) string >\0 of '%s'
  70. >>>(0x38+0x10) belong >0 (signal %d),
  71. >>16 beshort &0xff00 processor-specific,
  72. >>18 beshort 0 no machine,
  73. >>18 beshort 1 AT&T WE32100,
  74. >>18 beshort 2 SPARC,
  75. >>18 beshort 3 Intel 80386 - invalid byte order,
  76. >>18 beshort 4 Motorola 68000,
  77. >>18 beshort 5 Motorola 88000,
  78. >>18 beshort 6 Intel 80486 - invalid byte order,
  79. >>18 beshort 7 Intel 80860,
  80. >>18 beshort 8 MIPS R3000_BE,
  81. >>18 beshort 9 Amdahl,
  82. >>18 beshort 10 MIPS R3000_LE - invalid byte order,
  83. >>18 beshort 11 RS6000,
  84. >>18 beshort 15 PA-RISC,
  85. >>18 beshort 16 nCUBE,
  86. >>18 beshort 17 VPP500,
  87. >>18 beshort 18 SPARC32PLUS,
  88. >>18 beshort 20 PowerPC or cisco 4500,
  89. >>18 beshort 21 cisco 7500,
  90. >>18 beshort 24 cisco SVIP,
  91. >>18 beshort 25 cisco 7200,
  92. >>18 beshort 36 cisco 12000,
  93. >>18 beshort 0x9026 Alpha,
  94. >>20 belong 0 invalid version
  95. >>20 belong 1 version 1
  96. >>36 belong 1 MathCoPro/FPU/MAU Required