source: trunk/libs/newlib/src/include/nlm/sparc32-ext.h @ 581

Last change on this file since 581 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.7 KB
RevLine 
[444]1/* SPARC NLM (NetWare Loadable Module) support for BFD.
2   Copyright 1993, 2005, 2010 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 3 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,
19   MA 02110-1301, USA.  */
20
21/* The external format of the fixed header.  */
22
23typedef struct nlm32_sparc_external_fixed_header
24{
25
26  /* The signature field identifies the file as an NLM.  It must contain
27     the signature string, which depends upon the NLM target. */
28
29  unsigned char signature[24];
30
31  /* The version of the header.  At this time, the highest version number
32     is 4. */
33
34  unsigned char version[4];
35
36  /* The name of the module, which must be a DOS name (1-8 characters followed
37     by a period and a 1-3 character extension).  The first byte is the byte
38     length of the name and the last byte is a null terminator byte.  This
39     field is fixed length, and any unused bytes should be null bytes.  The
40     value is set by the OUTPUT keyword to NLMLINK. */
41
42  unsigned char moduleName[14];
43
44  /* Padding to make it come out correct. */
45
46  unsigned char pad1[2];
47
48  /* The byte offset of the code image from the start of the file. */
49
50  unsigned char codeImageOffset[4];
51
52  /* The size of the code image, in bytes. */
53
54  unsigned char codeImageSize[4];
55
56  /* The byte offset of the data image from the start of the file. */
57
58  unsigned char dataImageOffset[4];
59
60  /* The size of the data image, in bytes. */
61
62  unsigned char dataImageSize[4];
63
64  /* The size of the uninitialized data region that the loader is to be
65     allocated at load time.  Uninitialized data follows the initialized
66     data in the NLM address space. */
67
68  unsigned char uninitializedDataSize[4];
69
70  /* The byte offset of the custom data from the start of the file.  The
71     custom data is set by the CUSTOM keyword to NLMLINK.  It is possible
72     for this to be EOF if there is no custom data. */
73
74  unsigned char customDataOffset[4];
75
76  /* The size of the custom data, in bytes. */
77
78  unsigned char customDataSize[4];
79
80  /* The byte offset of the module dependencies from the start of the file.
81     The module dependencies are determined by the MODULE keyword in
82     NLMLINK. */
83
84  unsigned char moduleDependencyOffset[4];
85
86  /* The number of module dependencies at the moduleDependencyOffset. */
87
88  unsigned char numberOfModuleDependencies[4];
89
90  /* The byte offset of the relocation fixup data from the start of the file */
91     
92  unsigned char relocationFixupOffset[4];
93
94  unsigned char numberOfRelocationFixups[4];
95
96  unsigned char externalReferencesOffset[4];
97
98  unsigned char numberOfExternalReferences[4];
99
100  unsigned char publicsOffset[4];
101
102  unsigned char numberOfPublics[4];
103
104  /* The byte offset of the internal debug info from the start of the file.
105     It is possible for this to be EOF if there is no debug info. */
106
107  unsigned char debugInfoOffset[4];
108
109  unsigned char numberOfDebugRecords[4];
110
111  unsigned char codeStartOffset[4];
112
113  unsigned char exitProcedureOffset[4];
114
115  unsigned char checkUnloadProcedureOffset[4];
116
117  unsigned char moduleType[4];
118
119  unsigned char flags[4];
120
121} Nlm32_sparc_External_Fixed_Header;
Note: See TracBrowser for help on using the repository browser.