]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - include/nlm/i386-ext.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / include / nlm / i386-ext.h
1 typedef struct nlm32_i386_external_fixed_header
2 {
3
4 /* The signature field identifies the file as an NLM. It must contain
5 the signature string, which depends upon the NLM target. */
6
7 unsigned char signature[24];
8
9 /* The version of the header. At this time, the highest version number
10 is 4. */
11
12 unsigned char version[4];
13
14 /* The name of the module, which must be a DOS name (1-8 characters followed
15 by a period and a 1-3 character extension). The first byte is the byte
16 length of the name and the last byte is a null terminator byte. This
17 field is fixed length, and any unused bytes should be null bytes. The
18 value is set by the OUTPUT keyword to NLMLINK. */
19
20 unsigned char moduleName[14];
21
22 /* The byte offset of the code image from the start of the file. */
23
24 unsigned char codeImageOffset[4];
25
26 /* The size of the code image, in bytes. */
27
28 unsigned char codeImageSize[4];
29
30 /* The byte offset of the data image from the start of the file. */
31
32 unsigned char dataImageOffset[4];
33
34 /* The size of the data image, in bytes. */
35
36 unsigned char dataImageSize[4];
37
38 /* The size of the uninitialized data region that the loader is to be
39 allocated at load time. Uninitialized data follows the initialized
40 data in the NLM address space. */
41
42 unsigned char uninitializedDataSize[4];
43
44 /* The byte offset of the custom data from the start of the file. The
45 custom data is set by the CUSTOM keyword to NLMLINK. It is possible
46 for this to be EOF if there is no custom data. */
47
48 unsigned char customDataOffset[4];
49
50 /* The size of the custom data, in bytes. */
51
52 unsigned char customDataSize[4];
53
54 /* The byte offset of the module dependencies from the start of the file.
55 The module dependencies are determined by the MODULE keyword in
56 NLMLINK. */
57
58 unsigned char moduleDependencyOffset[4];
59
60 /* The number of module dependencies at the moduleDependencyOffset. */
61
62 unsigned char numberOfModuleDependencies[4];
63
64 /* The byte offset of the relocation fixup data from the start of the file */
65
66 unsigned char relocationFixupOffset[4];
67
68 unsigned char numberOfRelocationFixups[4];
69
70 unsigned char externalReferencesOffset[4];
71
72 unsigned char numberOfExternalReferences[4];
73
74 unsigned char publicsOffset[4];
75
76 unsigned char numberOfPublics[4];
77
78 /* The byte offset of the internal debug info from the start of the file.
79 It is possible for this to be EOF if there is no debug info. */
80
81 unsigned char debugInfoOffset[4];
82
83 unsigned char numberOfDebugRecords[4];
84
85 unsigned char codeStartOffset[4];
86
87 unsigned char exitProcedureOffset[4];
88
89 unsigned char checkUnloadProcedureOffset[4];
90
91 unsigned char moduleType[4];
92
93 unsigned char flags[4];
94
95 } Nlm32_i386_External_Fixed_Header;
96