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