* gas/arm/thumb2_bcond.d: Allow for varying number of nops at the
[binutils/dougsmingw.git] / include / vms / eihd.h
blob771727e95a2c9e9f19a1f61d07d7b6a74dcb20d6
1 /* Alpha VMS external format of Extended Image Header.
3 Copyright 2010 Free Software Foundation, Inc.
4 Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
6 This file is part of BFD, the Binary File Descriptor library.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
23 #ifndef _VMS_EIHD_H
24 #define _VMS_EIHD_H
26 /* Extended Image Header (eihd) structure. */
27 struct vms_eihd
29 /* Version of this EIHD. */
30 unsigned char majorid[4];
31 unsigned char minorid[4];
33 /* Size in bytes of the header. */
34 unsigned char size[4];
36 /* Byte offset to ISD (Image Section Descriptors) list. */
37 unsigned char isdoff[4];
39 /* Byte offset to activation data. */
40 unsigned char activoff[4];
42 /* Byte offset to symbol table and debugging data. */
43 unsigned char symdbgoff[4];
45 /* Byte offset to image ident. */
46 unsigned char imgidoff[4];
48 /* Byte offset to patch data. */
49 unsigned char patchoff[4];
51 /* RVA of fixup info. */
52 unsigned char iafva[8];
54 /* RVA of symbol vector. */
55 unsigned char symvva[8];
57 /* Byte offset to version number array. */
58 unsigned char version_array_off[4];
60 /* Image type. */
61 unsigned char imgtype[4];
63 /* Image subtype. */
64 unsigned char subtype[4];
66 /* Size in bytes of image I/O section requested. */
67 unsigned char imgiocnt[4];
69 /* Nbr of channels requested. */
70 unsigned char iochancnt[4];
72 /* Requested privilege mask. */
73 unsigned char privreqs[8];
75 /* Number of header diskblocks. */
76 unsigned char hdrblkcnt[4];
78 /* Linker produced image flags. */
79 unsigned char lnkflags[4];
81 /* GBL SEC ident value for linkable image. */
82 unsigned char ident[4];
84 /* SYS$K_VERSION or 0 if not linked with exec. */
85 unsigned char sysver[4];
87 /* Linker match control. */
88 unsigned char matchctl;
89 unsigned char fill_1[3];
91 /* Size of the symbol vector in bytes. */
92 unsigned char symvect_size[4];
94 /* Value of /BPAGE. */
95 unsigned char virt_mem_block_size[4];
97 /* Byte offset to extended fixup data. */
98 unsigned char ext_fixup_off[4];
100 /* Byte offset to no_optimize psect table. */
101 unsigned char noopt_psect_off[4];
103 unsigned char fill_2[398];
105 /* CODE identifies image type to MOM. */
106 unsigned char alias[2];
109 #define EIHD__K_MAJORID 3 /* Major id constant */
110 #define EIHD__K_MINORID 0 /* Minor id constant */
112 /* Image type. */
113 #define EIHD__K_EXE 1 /* Executable image */
114 #define EIHD__K_LIM 2 /* Linkable image. */
116 /* Linker image flags. */
117 #define EIHD__M_LNKDEBUG 0x0001 /* Full debugging requested. */
118 #define EIHD__M_LNKNOTFR 0x0002 /* No first transfer address. */
119 #define EIHD__M_NOP0BUFS 0x0004 /* No RMS use of P0 for image I/O. */
120 #define EIHD__M_PICIMG 0x0008 /* PIC image. */
121 #define EIHD__M_P0IMAGE 0x0010 /* P0 only image. */
122 #define EIHD__M_DBGDMT 0x0020 /* Image header has dmt fields. */
123 #define EIHD__M_INISHR 0x0040 /* Transfer array contains LNISHR. */
124 #define EIHD__M_XLATED 0x0080 /* Translated image. */
125 #define EIHD__M_BIND_CODE_SEC 0x0100 /* EXE sect can be put into S0. */
126 #define EIHD__M_BIND_DATA_SEC 0x0200 /* DATA sect can be put into S0. */
127 #define EIHD__M_MKTHREADS 0x0400 /* Multiple kernel threads. */
128 #define EIHD__M_UPCALLS 0x0800 /* Upcalls enabled. */
129 #define EIHD__M_OMV_READY 0x1000 /* Can be processed by OMV. */
130 #define EIHD__M_EXT_BIND_SECT 0x2000 /* May be moved, using ext fixups. */
133 /* Offsets of some fields. */
134 #define EIHD__L_SIZE 8
135 #define EIHD__L_ISDOFF 12
136 #define EIHD__L_SYMDBGOFF 20
137 #define EIHD__Q_SYMVVA 40
138 #define EIHD__L_IMGTYPE 52
140 #endif /* _VMS_EIHD_H */