1 /* Alpha VMS external format of Extended Image Section Descriptor.
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. */
27 #define EISD__M_GBL 0x0001 /* Global. */
28 #define EISD__M_CRF 0x0002 /* Copy on reference. */
29 #define EISD__M_DZRO 0x0004 /* Demand zero page. */
30 #define EISD__M_WRT 0x0008 /* Writable. */
31 #define EISD__M_INITALCODE 0x0010 /* Part of initialization code. */
32 #define EISD__M_BASED 0x0020 /* Isect is based. */
33 #define EISD__M_FIXUPVEC 0x0040 /* Isect is fixup section. */
34 #define EISD__M_RESIDENT 0x0080 /* Isect is memory resident. */
35 #define EISD__M_VECTOR 0x0100 /* Vector contained in isect. */
36 #define EISD__M_PROTECT 0x0200 /* Isect is proected. */
37 #define EISD__M_LASTCLU 0x0400 /* Last cluster. */
38 #define EISD__M_EXE 0x0800 /* Code isect. */
39 #define EISD__M_NONSHRADR 0x1000 /* Contains non-shareable data. */
40 #define EISD__M_QUAD_LENGTH 0x2000 /* Quad length field valid. */
41 #define EISD__M_ALLOC_64BIT 0x4000 /* Allocate 64-bit space. */
45 unsigned char majorid
[4];
46 unsigned char minorid
[4];
48 /* Size (in bytes) of this eisd. */
49 unsigned char eisdsize
[4];
51 /* Size (in bytes) of the section. */
52 unsigned char secsize
[4];
54 /* Virtual address of the section. */
55 unsigned char virt_addr
[8];
58 unsigned char flags
[4];
60 /* Base virtual block number. */
63 /* Page fault cluster. */
66 /* Linker match control. */
67 unsigned char matchctl
;
77 /* Ident for global section. */
78 unsigned char ident
[4];
80 /* Global name ascic. First 8 bytes are quad length field. */
81 unsigned char gblnam
[44];
86 #define EISD__L_EISDSIZE 8
87 #define EISD__L_SECSIZE 12
88 #define EISD__Q_VIR_ADDR 16
89 #define EISD__L_FLAGS 24
90 #define EISD__L_VBN 28
91 #define EISD__R_CONTROL 32
92 #define EISD__L_IDENT 36
93 #define EISD__T_GBLNAM 40
95 #endif /* _VMS_EISD_H */