elf 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #------------------------------------------------------------------------------
  2. # elf: file(1) magic for ELF 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. # updated by Daniel Quinlan (quinlan@yggdrasil.com)
  11. 0 string \177ELF ELF
  12. >4 byte 0 invalid class
  13. >4 byte 1 32-bit
  14. >4 byte 2 64-bit
  15. >5 byte 0 invalid byte order
  16. >5 byte 1 LSB
  17. >>16 leshort 0 no file type,
  18. >>16 leshort 1 relocatable,
  19. >>16 leshort 2 executable,
  20. >>16 leshort 3 shared object,
  21. # Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
  22. # corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
  23. >>16 leshort 4 core file
  24. >>>(0x38+0xcc) string >\0 of '%s'
  25. >>>(0x38+0x10) lelong >0 (signal %d),
  26. >>16 leshort &0xff00 processor-specific,
  27. >>18 leshort 0 no machine,
  28. >>18 leshort 1 AT&T WE32100 - invalid byte order,
  29. >>18 leshort 2 SPARC - invalid byte order,
  30. >>18 leshort 3 Intel 80386,
  31. >>18 leshort 4 Motorola 68000 - invalid byte order,
  32. >>18 leshort 5 Motorola 88000 - invalid byte order,
  33. >>18 leshort 6 Intel 80486,
  34. >>18 leshort 7 Intel 80860,
  35. >>18 leshort 8 MIPS R3000_BE - invalid byte order,
  36. >>18 leshort 9 Amdahl - invalid byte order,
  37. >>18 leshort 10 MIPS R3000_LE,
  38. >>18 leshort 11 RS6000 - invalid byte order,
  39. >>18 leshort 15 PA-RISC - invalid byte order,
  40. >>18 leshort 16 nCUBE,
  41. >>18 leshort 17 Fujitsu VPP500,
  42. >>18 leshort 18 SPARC32PLUS,
  43. >>18 leshort 20 PowerPC,
  44. >>18 leshort 36 NEC V800,
  45. >>18 leshort 37 Fujitsu FR20,
  46. >>18 leshort 38 TRW RH-32,
  47. >>18 leshort 39 Motorola RCE,
  48. >>18 leshort 40 Advanced RISC Machines ARM,
  49. >>18 leshort 41 Alpha,
  50. >>18 leshort 42 Hitachi SH,
  51. >>18 leshort 43 SPARC V9 - invalid byte order,
  52. >>18 leshort 44 Siemens Tricore Embedded Processor,
  53. >>18 leshort 45 Argonaut RISC Core, Argonaut Technologies Inc.,
  54. >>18 leshort 46 Hitachi H8/300,
  55. >>18 leshort 47 Hitachi H8/300H,
  56. >>18 leshort 48 Hitachi H8S,
  57. >>18 leshort 49 Hitachi H8/500,
  58. >>18 leshort 50 Intel Merced Processor,
  59. >>18 leshort 51 Stanford MIPS-X,
  60. >>18 leshort 52 Motorola Coldfire,
  61. >>18 leshort 53 Motorola M68HC12,
  62. >>18 leshort 0x9026 Alpha (unofficial),
  63. >>20 lelong 0 invalid version
  64. >>20 lelong 1 version 1
  65. >>36 lelong 1 MathCoPro/FPU/MAU Required
  66. >8 string >\0 (%s)
  67. >5 byte 2 MSB
  68. >>16 beshort 0 no file type,
  69. >>16 beshort 1 relocatable,
  70. >>16 beshort 2 executable,
  71. >>16 beshort 3 shared object,
  72. >>16 beshort 4 core file,
  73. >>>(0x38+0xcc) string >\0 of '%s'
  74. >>>(0x38+0x10) belong >0 (signal %d),
  75. >>16 beshort &0xff00 processor-specific,
  76. >>18 beshort 0 no machine,
  77. >>18 beshort 1 AT&T WE32100,
  78. >>18 beshort 2 SPARC,
  79. >>18 beshort 3 Intel 80386 - invalid byte order,
  80. >>18 beshort 4 Motorola 68000,
  81. >>18 beshort 5 Motorola 88000,
  82. >>18 beshort 6 Intel 80486 - invalid byte order,
  83. >>18 beshort 7 Intel 80860,
  84. >>18 beshort 8 MIPS R3000_BE,
  85. >>18 beshort 9 Amdahl,
  86. >>18 beshort 10 MIPS R3000_LE - invalid byte order,
  87. >>18 beshort 11 RS6000,
  88. >>18 beshort 15 PA-RISC,
  89. >>18 beshort 16 nCUBE,
  90. >>18 beshort 17 Fujitsu VPP500,
  91. >>18 beshort 18 SPARC32PLUS,
  92. >>18 beshort 20 PowerPC or cisco 4500,
  93. >>18 beshort 21 cisco 7500,
  94. >>18 beshort 24 cisco SVIP,
  95. >>18 beshort 25 cisco 7200,
  96. >>18 beshort 36 NEC V800 or cisco 12000,
  97. >>18 beshort 37 Fujitsu FR20,
  98. >>18 beshort 38 TRW RH-32,
  99. >>18 beshort 39 Motorola RCE,
  100. >>18 beshort 40 Advanced RISC Machines ARM,
  101. >>18 beshort 41 Alpha,
  102. >>18 leshort 42 Hitachi SH,
  103. >>18 beshort 43 SPARC V9 - invalid byte order,
  104. >>18 beshort 44 Siemens Tricore Embedded Processor,
  105. >>18 beshort 45 Argonaut RISC Core, Argonaut Technologies Inc.,
  106. >>18 beshort 46 Hitachi H8/300,
  107. >>18 beshort 47 Hitachi H8/300H,
  108. >>18 beshort 48 Hitachi H8S,
  109. >>18 beshort 49 Hitachi H8/500,
  110. >>18 beshort 50 Intel Merced Processor,
  111. >>18 beshort 51 Stanford MIPS-X,
  112. >>18 beshort 52 Motorola Coldfire,
  113. >>18 beshort 53 Motorola M68HC12,
  114. >>18 beshort 0x9026 Alpha (unofficial),
  115. >>20 belong 0 invalid version
  116. >>20 belong 1 version 1
  117. >>36 belong 1 MathCoPro/FPU/MAU Required