summaryrefslogtreecommitdiffstats
path: root/usr.bin/file
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-10-22 04:41:34 +0000
committerimp <imp@FreeBSD.org>1998-10-22 04:41:34 +0000
commitceebcabfd1c411eb07c5beb32df83e76a7ede0f6 (patch)
treec0cdccc482f72ea290b65a545277fdcf1eb265f2 /usr.bin/file
parent74c0b02f756cb3d0b1029348eb717c254f23f84b (diff)
downloadFreeBSD-src-ceebcabfd1c411eb07c5beb32df83e76a7ede0f6.zip
FreeBSD-src-ceebcabfd1c411eb07c5beb32df83e76a7ede0f6.tar.gz
Added Microsoft's PE formatted executables for mips, i386 and Alpha.
Also added entry for the debugger files as well. The PE format is used for all Win32 platforms (Win95, Win98, WinNT and WinCE), so it is nice to be able to tell what kind of thing the foo.dll.... Don't have any data for powerpc formats, however...
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/Magdir/ms-dos34
1 files changed, 33 insertions, 1 deletions
diff --git a/usr.bin/file/Magdir/ms-dos b/usr.bin/file/Magdir/ms-dos
index db2c03e..35e274f 100644
--- a/usr.bin/file/Magdir/ms-dos
+++ b/usr.bin/file/Magdir/ms-dos
@@ -6,6 +6,39 @@
# .BAT files (Daniel Quinlan, quinlan@yggdrasil.com)
0 string @echo\ off MS-DOS batch file text
+# WinNT/WinCE PE files (Warner Losh, imp@village.org)
+#
+# XXX Missing powerpc from the WinNT world and Hitatchi SH-3 from the CE world.
+128 string PE\000\000 Microsoft Portable Executable
+>132 leshort 0x0000 \b, Unknown CPU
+>132 leshort 0x14c \b, Intel 386
+>132 leshort 0x14d \b, Intel 486
+>132 leshort 0x14e \b, Intel 586
+>132 leshort 0x162 \b, MIPS ISA I
+>132 leshort 0x163 \b, MIPS ISA II
+>132 leshort 0x166 \b, MIPS ISA III
+>132 leshort 0x184 \b, Digital Alpha
+0 string PE\000\000 Microsoft Portable Executable (no dos header)
+>4 leshort 0x0000 \b, Unknown CPU
+>4 leshort 0x14c \b, Intel 386
+>4 leshort 0x14d \b, Intel 486
+>4 leshort 0x14e \b, Intel 586
+>4 leshort 0x162 \b, MIPS ISA I
+>4 leshort 0x163 \b, MIPS ISA II
+>4 leshort 0x166 \b, MIPS ISA III
+>4 leshort 0x184 \b, Digital Alpha
+# It would appear that the debugger information is in basically the same
+# format as what binutils calls PEI files.
+0 string DI\000\000 Microsoft PE Debugger Information
+>4 leshort 0x0000 \b, Unknown CPU
+>4 leshort 0x14c \b, Intel 386
+>4 leshort 0x14d \b, Intel 486
+>4 leshort 0x14e \b, Intel 586
+>4 leshort 0x162 \b, MIPS ISA I
+>4 leshort 0x163 \b, MIPS ISA II
+>4 leshort 0x166 \b, MIPS ISA III
+>4 leshort 0x184 \b, Digital Alpha
+
# .EXE formats (Greg Roelofs, newt@uchicago.edu)
#
0 string MZ MS-DOS executable (EXE)
@@ -39,7 +72,6 @@
>49801 string \x79\xff\x80\xff\x76\xff \b, CODEC archive v3.21
>>49824 leshort =1 \b, 1 file
>>49824 leshort >1 \b, %u files
-
# .COM formats (Daniel Quinlan, quinlan@yggdrasil.com)
# Uncommenting only the first two lines will cover about 2/3 of COM files,
# but it isn't feasible to match all COM files since there must be at least
OpenPOWER on IntegriCloud