xref: /netbsd-src/sys/arch/pmax/include/dec_exec.h (revision 95e1ffb15694e54f29f8baaa4232152b703c2a5a)
1*95e1ffb1Schristos /*	$NetBSD: dec_exec.h,v 1.8 2005/12/11 12:18:39 christos Exp $	*/
2a63beafcScgd 
3fe806afeSderaadt /*-
4814f4529Sglass  * Copyright (c) 1993
5814f4529Sglass  *	The Regents of the University of California.  All rights reserved.
6fe806afeSderaadt  *
7fe806afeSderaadt  * This code is derived from software contributed to Berkeley by
8fe806afeSderaadt  * Ralph Campbell.
9fe806afeSderaadt  *
10fe806afeSderaadt  * Redistribution and use in source and binary forms, with or without
11fe806afeSderaadt  * modification, are permitted provided that the following conditions
12fe806afeSderaadt  * are met:
13fe806afeSderaadt  * 1. Redistributions of source code must retain the above copyright
14fe806afeSderaadt  *    notice, this list of conditions and the following disclaimer.
15fe806afeSderaadt  * 2. Redistributions in binary form must reproduce the above copyright
16fe806afeSderaadt  *    notice, this list of conditions and the following disclaimer in the
17fe806afeSderaadt  *    documentation and/or other materials provided with the distribution.
18aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
19fe806afeSderaadt  *    may be used to endorse or promote products derived from this software
20fe806afeSderaadt  *    without specific prior written permission.
21fe806afeSderaadt  *
22fe806afeSderaadt  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23fe806afeSderaadt  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24fe806afeSderaadt  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25fe806afeSderaadt  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26fe806afeSderaadt  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27fe806afeSderaadt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28fe806afeSderaadt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29fe806afeSderaadt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30fe806afeSderaadt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31fe806afeSderaadt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32fe806afeSderaadt  * SUCH DAMAGE.
33fe806afeSderaadt  *
34a63beafcScgd  *	@(#)dec_exec.h	8.1 (Berkeley) 6/10/93
35fe806afeSderaadt  */
36fe806afeSderaadt 
37fe806afeSderaadt /*
38fe806afeSderaadt  * Portions of this file are subject to the following copyright notice:
39fe806afeSderaadt  *
40fe806afeSderaadt  * Copyright (C) 1989 Digital Equipment Corporation.
41fe806afeSderaadt  * Permission to use, copy, modify, and distribute this software and
42fe806afeSderaadt  * its documentation for any purpose and without fee is hereby granted,
43fe806afeSderaadt  * provided that the above copyright notice appears in all copies.
44fe806afeSderaadt  * Digital Equipment Corporation makes no representations about the
45fe806afeSderaadt  * suitability of this software for any purpose.  It is provided "as is"
46fe806afeSderaadt  * without express or implied warranty.
47fe806afeSderaadt  */
48fe806afeSderaadt 
49fe806afeSderaadt /*
50fe806afeSderaadt  * /sprite/src/kernel/proc/ds3100.md/RCS/procMach.h,v 9.3 90/02/20 15:35:50
51814f4529Sglass  * shirriff Exp  SPRITE (Berkeley)
52fe806afeSderaadt  */
53fe806afeSderaadt 
54838b5e08Sad #ifndef _PMAX_DEC_EXEC_H_
55838b5e08Sad #define _PMAX_DEC_EXEC_H_
56838b5e08Sad 
57fe806afeSderaadt /* Description of the COFF section. */
58fe806afeSderaadt struct coff_exec {
59fe806afeSderaadt #define	COFF_MAGIC	0x0162
60fe806afeSderaadt 	u_short	magic;		/* The magic number. */
61fe806afeSderaadt 
62fe806afeSderaadt 	u_short	numSections;	/* The number of sections. */
63fe806afeSderaadt 	long	timeDateStamp;	/* Time and date stamp. */
64fe806afeSderaadt 	long	symPtr;		/* File pointer to symbolic header. */
65fe806afeSderaadt 	long	numSyms;	/* Size of symbolic header. */
66fe806afeSderaadt 	u_short	optHeader;	/* Size of optional header. */
67fe806afeSderaadt 	u_short	flags;		/* Flags. */
68fe806afeSderaadt 
69fe806afeSderaadt /* Description of the a.out section. */
70fe806afeSderaadt 	short	aout_magic;	/* Magic number. */
71fe806afeSderaadt 
72fe806afeSderaadt 	short	verStamp;	/* Version stamp. */
73fe806afeSderaadt 	long	codeSize;	/* Code size in bytes. */
74fe806afeSderaadt 	long	heapSize;	/* Initialized data size in bytes. */
75fe806afeSderaadt 	long	bssSize;	/* Uninitialized data size in bytes. */
76fe806afeSderaadt 	long	entry;		/* Entry point. */
77fe806afeSderaadt 	long	codeStart;	/* Base of code used for this file. */
78fe806afeSderaadt 	long	heapStart;	/* Base of heap used for this file. */
79fe806afeSderaadt 	long	bssStart;	/* Base of bss used for this file. */
80fe806afeSderaadt 	long	gprMask;	/* General purpose register mask. */
81fe806afeSderaadt 	long	cprMask[4];	/* Co-processor register masks. */
82fe806afeSderaadt 	long	gpValue;	/* The gp value for this object. */
83fe806afeSderaadt };
84fe806afeSderaadt 
85fe806afeSderaadt /* Section header. */
86fe806afeSderaadt typedef struct {
87fe806afeSderaadt 	char	name[8];	/* Section name. */
88fe806afeSderaadt 	long	physAddr;	/* Section physical address. */
89fe806afeSderaadt 	long	virtAddr;	/* Section virtual address. */
90fe806afeSderaadt 	long	size;		/* Section size. */
91fe806afeSderaadt 	long	sectionPtr;	/* File pointer to section data. */
92fe806afeSderaadt 	long	relocPtr;	/* File pointer to relocation data. */
93fe806afeSderaadt 	long	lnnoPtr;	/* File pointer to gp tables. */
94fe806afeSderaadt 	u_short	numReloc;	/* Number of relocation entries. */
95fe806afeSderaadt 	u_short	numLnno;	/* Numberof gp tables. */
96fe806afeSderaadt 	long	flags;		/* Section flags. */
97fe806afeSderaadt } ProcSectionHeader;
98838b5e08Sad 
99838b5e08Sad #endif	/* !_PMAX_DEC_EXEC_H_ */
100