OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [include/] [nlm/] [sparc32-ext.h] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 jlechner
/* SPARC NLM (NetWare Loadable Module) support for BFD.
2
   Copyright 1993 Free Software Foundation, Inc.
3
 
4
This file is part of BFD, the Binary File Descriptor library.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
19
 
20
/* The external format of the fixed header.  */
21
 
22
typedef struct nlm32_sparc_external_fixed_header
23
{
24
 
25
  /* The signature field identifies the file as an NLM.  It must contain
26
     the signature string, which depends upon the NLM target. */
27
 
28
  unsigned char signature[24];
29
 
30
  /* The version of the header.  At this time, the highest version number
31
     is 4. */
32
 
33
  unsigned char version[4];
34
 
35
  /* The name of the module, which must be a DOS name (1-8 characters followed
36
     by a period and a 1-3 character extension).  The first byte is the byte
37
     length of the name and the last byte is a null terminator byte.  This
38
     field is fixed length, and any unused bytes should be null bytes.  The
39
     value is set by the OUTPUT keyword to NLMLINK. */
40
 
41
  unsigned char moduleName[14];
42
 
43
  /* Padding to make it come out correct. */
44
 
45
  unsigned char pad1[2];
46
 
47
  /* The byte offset of the code image from the start of the file. */
48
 
49
  unsigned char codeImageOffset[4];
50
 
51
  /* The size of the code image, in bytes. */
52
 
53
  unsigned char codeImageSize[4];
54
 
55
  /* The byte offset of the data image from the start of the file. */
56
 
57
  unsigned char dataImageOffset[4];
58
 
59
  /* The size of the data image, in bytes. */
60
 
61
  unsigned char dataImageSize[4];
62
 
63
  /* The size of the uninitialized data region that the loader is to be
64
     allocated at load time.  Uninitialized data follows the initialized
65
     data in the NLM address space. */
66
 
67
  unsigned char uninitializedDataSize[4];
68
 
69
  /* The byte offset of the custom data from the start of the file.  The
70
     custom data is set by the CUSTOM keyword to NLMLINK.  It is possible
71
     for this to be EOF if there is no custom data. */
72
 
73
  unsigned char customDataOffset[4];
74
 
75
  /* The size of the custom data, in bytes. */
76
 
77
  unsigned char customDataSize[4];
78
 
79
  /* The byte offset of the module dependencies from the start of the file.
80
     The module dependencies are determined by the MODULE keyword in
81
     NLMLINK. */
82
 
83
  unsigned char moduleDependencyOffset[4];
84
 
85
  /* The number of module dependencies at the moduleDependencyOffset. */
86
 
87
  unsigned char numberOfModuleDependencies[4];
88
 
89
  /* The byte offset of the relocation fixup data from the start of the file */
90
 
91
  unsigned char relocationFixupOffset[4];
92
 
93
  unsigned char numberOfRelocationFixups[4];
94
 
95
  unsigned char externalReferencesOffset[4];
96
 
97
  unsigned char numberOfExternalReferences[4];
98
 
99
  unsigned char publicsOffset[4];
100
 
101
  unsigned char numberOfPublics[4];
102
 
103
  /* The byte offset of the internal debug info from the start of the file.
104
     It is possible for this to be EOF if there is no debug info. */
105
 
106
  unsigned char debugInfoOffset[4];
107
 
108
  unsigned char numberOfDebugRecords[4];
109
 
110
  unsigned char codeStartOffset[4];
111
 
112
  unsigned char exitProcedureOffset[4];
113
 
114
  unsigned char checkUnloadProcedureOffset[4];
115
 
116
  unsigned char moduleType[4];
117
 
118
  unsigned char flags[4];
119
 
120
} Nlm32_sparc_External_Fixed_Header;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.