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