Home | History | Annotate | Line # | Download | only in magdir
vms revision 1.1
      1  1.1  christos 
      2  1.1  christos #------------------------------------------------------------------------------
      3  1.1  christos # vms:  file(1) magic for VMS executables (experimental)
      4  1.1  christos #
      5  1.1  christos # VMS .exe formats, both VAX and AXP (Greg Roelofs, newt (a] uchicago.edu)
      6  1.1  christos 
      7  1.1  christos # GRR 950122:  I'm just guessing on these, based on inspection of the headers
      8  1.1  christos # of three executables each for Alpha and VAX architectures.  The VAX files
      9  1.1  christos # all had headers similar to this:
     10  1.1  christos #
     11  1.1  christos #   00000  b0 00 30 00 44 00 60 00  00 00 00 00 30 32 30 35  ..0.D.`.....0205
     12  1.1  christos #   00010  01 01 00 00 ff ff ff ff  ff ff ff ff 00 00 00 00  ................
     13  1.1  christos #
     14  1.1  christos 0	string	\xb0\0\x30\0	VMS VAX executable
     15  1.1  christos >44032	string	PK\003\004	\b, Info-ZIP SFX archive v5.12 w/decryption
     16  1.1  christos #
     17  1.1  christos # The AXP files all looked like this, except that the byte at offset 0x22
     18  1.1  christos # was 06 in some of them and 07 in others:
     19  1.1  christos #
     20  1.1  christos #   00000  03 00 00 00 00 00 00 00  ec 02 00 00 10 01 00 00  ................
     21  1.1  christos #   00010  68 00 00 00 98 00 00 00  b8 00 00 00 00 00 00 00  h...............
     22  1.1  christos #   00020  00 00 07 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
     23  1.1  christos #   00030  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  ................
     24  1.1  christos #   00040  00 00 00 00 ff ff ff ff  ff ff ff ff 02 00 00 00  ................
     25  1.1  christos #
     26  1.1  christos 0	belong	0x03000000	VMS Alpha executable
     27  1.1  christos >75264	string	PK\003\004	\b, Info-ZIP SFX archive v5.12 w/decryption
     28