xref: /freebsd/contrib/file/magic/Magdir/digital (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: digital,v 1.17 2024/08/30 16:53:22 christos Exp $
4b6cee71dSXin LI#  Digital UNIX - Info
5b6cee71dSXin LI#
6b6cee71dSXin LI0	string	=!<arch>\n________64E	Alpha archive
7b6cee71dSXin LI>22	string	X			-- out of date
8b6cee71dSXin LI#
9b6cee71dSXin LI
10b6cee71dSXin LI0	leshort		0603
11b6cee71dSXin LI>24	leshort		0410		COFF format alpha pure
12b6cee71dSXin LI>24	leshort		0413		COFF format alpha demand paged
13*ae316d1dSXin LI# TODO: use other subroutine (./coff) to display name+flags+variables for common object formatted files
14*ae316d1dSXin LI#>0	use				display-coff-foo
15b6cee71dSXin LI>>22	leshort&030000	!020000		executable
16*ae316d1dSXin LI#!:mime	application/x-foo-executable
17*ae316d1dSXin LI# typically no file name suffix for executables like \DEC\HH\HYPERHLP
18*ae316d1dSXin LI!:ext	/
19b6cee71dSXin LI>>22	leshort&020000	!0		dynamically linked
20b6cee71dSXin LI>>16	lelong		!0		not stripped
21b6cee71dSXin LI>>16	lelong		0		stripped
22b6cee71dSXin LI>>27	byte		x		- version %d
23b6cee71dSXin LI>>26	byte		x		\b.%d
24b6cee71dSXin LI>>28	byte		x		\b-%d
25b6cee71dSXin LI>24	leshort		0407		COFF format alpha object
26b6cee71dSXin LI>>22	leshort&030000	020000		shared library
27b6cee71dSXin LI>>27	byte		x		- version %d
28b6cee71dSXin LI>>26	byte		x		\b.%d
29b6cee71dSXin LI>>28	byte		x		\b-%d
30b6cee71dSXin LI
31*ae316d1dSXin LI# Alpha COFF object file or executable
32*ae316d1dSXin LI0	leshort		0x0184
33*ae316d1dSXin LI>16	leshort		0
34*ae316d1dSXin LI>>0	use		display-coff
35*ae316d1dSXin LI# can be created by LINK.EXE /MACHINE:ALPHA /ROM
36*ae316d1dSXin LI>16	leshort		!0
37*ae316d1dSXin LI>>18	leshort		&0x0002
38*ae316d1dSXin LI>>>20	leshort		0x0107
39*ae316d1dSXin LI>>>>0	use		display-coff
40*ae316d1dSXin LI0	leshort		0x0284
41*ae316d1dSXin LI>16	leshort		0
42*ae316d1dSXin LI>>0	use		display-coff
43*ae316d1dSXin LI
44b6cee71dSXin LI# Basic recognition of Digital UNIX core dumps - Mike Bremford <mike@opac.bl.uk>
45b6cee71dSXin LI#
46b6cee71dSXin LI# The actual magic number is just "Core", followed by a 2-byte version
47b6cee71dSXin LI# number; however, treating any file that begins with "Core" as a Digital
48b6cee71dSXin LI# UNIX core dump file may produce too many false hits, so we include one
49b6cee71dSXin LI# byte of the version number as well; DU 5.0 appears only to be up to
50b6cee71dSXin LI# version 2.
51b6cee71dSXin LI#
52b6cee71dSXin LI0	string		Core\001	Alpha COFF format core dump (Digital UNIX)
53b6cee71dSXin LI>24	string		>\0		\b, from '%s'
54b6cee71dSXin LI0	string		Core\002	Alpha COFF format core dump (Digital UNIX)
55b6cee71dSXin LI>24	string		>\0		\b, from '%s'
56b6cee71dSXin LI#
57b6cee71dSXin LI# The next is incomplete, we could tell more about this format,
58b6cee71dSXin LI# but its not worth it.
59b6cee71dSXin LI0	leshort		0x188	Alpha compressed COFF
60b6cee71dSXin LI0	leshort		0x18f	Alpha u-code object
61b6cee71dSXin LI#
62b6cee71dSXin LI#
63b6cee71dSXin LI# Some other interesting Digital formats,
64b6cee71dSXin LI0	string	\377\377\177		ddis/ddif
65b6cee71dSXin LI0	string	\377\377\174		ddis/dots archive
66b6cee71dSXin LI0	string	\377\377\176		ddis/dtif table data
67b6cee71dSXin LI0	string	\033c\033		LN03 output
68b6cee71dSXin LI0	long	04553207		X image
69b6cee71dSXin LI#
70b6cee71dSXin LI0	string	=!<PDF>!\n		profiling data file
71b6cee71dSXin LI#
72b6cee71dSXin LI# Locale data tables (MIPS and Alpha).
73b6cee71dSXin LI#
7443a5ec4eSXin LI# GRR: line below is too general as it matches also TTComp archive, ASCII, 2K  handled by ./archive
75b6cee71dSXin LI0	short		0x0501		locale data table
76b6cee71dSXin LI>6	short		0x24		for MIPS
77b6cee71dSXin LI>6	short		0x40		for Alpha
78