84d9c625bf
- Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loop Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
30 lines
1.4 KiB
Text
30 lines
1.4 KiB
Text
|
|
#------------------------------------------------------------------------------
|
|
# $File: vms,v 1.7 2013/03/09 22:36:00 christos Exp $
|
|
# vms: file(1) magic for VMS executables (experimental)
|
|
#
|
|
# VMS .exe formats, both VAX and AXP (Greg Roelofs, newt@uchicago.edu)
|
|
|
|
# GRR 950122: I'm just guessing on these, based on inspection of the headers
|
|
# of three executables each for Alpha and VAX architectures. The VAX files
|
|
# all had headers similar to this:
|
|
#
|
|
# 00000 b0 00 30 00 44 00 60 00 00 00 00 00 30 32 30 35 ..0.D.`.....0205
|
|
# 00010 01 01 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 ................
|
|
#
|
|
0 string \xb0\0\x30\0 VMS VAX executable
|
|
>44032 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
|
|
#
|
|
# The AXP files all looked like this, except that the byte at offset 0x22
|
|
# was 06 in some of them and 07 in others:
|
|
#
|
|
# 00000 03 00 00 00 00 00 00 00 ec 02 00 00 10 01 00 00 ................
|
|
# 00010 68 00 00 00 98 00 00 00 b8 00 00 00 00 00 00 00 h...............
|
|
# 00020 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
|
|
# 00030 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
|
|
# 00040 00 00 00 00 ff ff ff ff ff ff ff ff 02 00 00 00 ................
|
|
#
|
|
# GRR this test is still too general as it catches example adressen.dbt
|
|
0 belong 0x03000000
|
|
>8 ubelong 0xec020000 VMS Alpha executable
|
|
>>75264 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
|