xref: /original-bsd/sys/pmax/stand/dec_exec.h (revision 3705696b)
1 /*-
2  * Copyright (c) 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Ralph Campbell.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)dec_exec.h	8.1 (Berkeley) 06/10/93
11  */
12 
13 /*
14  * Portions of this file are subject to the following copyright notice:
15  *
16  * Copyright (C) 1989 Digital Equipment Corporation.
17  * Permission to use, copy, modify, and distribute this software and
18  * its documentation for any purpose and without fee is hereby granted,
19  * provided that the above copyright notice appears in all copies.
20  * Digital Equipment Corporation makes no representations about the
21  * suitability of this software for any purpose.  It is provided "as is"
22  * without express or implied warranty.
23  */
24 
25 /*
26  * /sprite/src/kernel/proc/ds3100.md/RCS/procMach.h,v 9.3 90/02/20 15:35:50
27  * shirriff Exp $ SPRITE (Berkeley)
28  */
29 
30 /* Description of the COFF section. */
31 struct coff_exec {
32 #define	COFF_MAGIC	0x0162
33 	u_short	magic;		/* The magic number. */
34 
35 	u_short	numSections;	/* The number of sections. */
36 	long	timeDateStamp;	/* Time and date stamp. */
37 	long	symPtr;		/* File pointer to symbolic header. */
38 	long	numSyms;	/* Size of symbolic header. */
39 	u_short	optHeader;	/* Size of optional header. */
40 	u_short	flags;		/* Flags. */
41 
42 /* Description of the a.out section. */
43 	short	aout_magic;	/* Magic number. */
44 
45 	short	verStamp;	/* Version stamp. */
46 	long	codeSize;	/* Code size in bytes. */
47 	long	heapSize;	/* Initialized data size in bytes. */
48 	long	bssSize;	/* Uninitialized data size in bytes. */
49 	long	entry;		/* Entry point. */
50 	long	codeStart;	/* Base of code used for this file. */
51 	long	heapStart;	/* Base of heap used for this file. */
52 	long	bssStart;	/* Base of bss used for this file. */
53 	long	gprMask;	/* General purpose register mask. */
54 	long	cprMask[4];	/* Co-processor register masks. */
55 	long	gpValue;	/* The gp value for this object. */
56 };
57 
58 /* Section header. */
59 typedef struct {
60 	char	name[8];	/* Section name. */
61 	long	physAddr;	/* Section physical address. */
62 	long	virtAddr;	/* Section virtual address. */
63 	long	size;		/* Section size. */
64 	long	sectionPtr;	/* File pointer to section data. */
65 	long	relocPtr;	/* File pointer to relocation data. */
66 	long	lnnoPtr;	/* File pointer to gp tables. */
67 	u_short	numReloc;	/* Number of relocation entries. */
68 	u_short	numLnno;	/* Numberof gp tables. */
69 	long	flags;		/* Section flags. */
70 } ProcSectionHeader;
71