blob: b4e47e2c1cffcaa054d7283ae85e40792414059d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/* Alpha VMS external format of Extended Image Section Descriptor.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
#ifndef _VMS_EISD_H
#define _VMS_EISD_H
/* Flags. */
#define EISD__M_GBL 0x0001 /* Global. */
#define EISD__M_CRF 0x0002 /* Copy on reference. */
#define EISD__M_DZRO 0x0004 /* Demand zero page. */
#define EISD__M_WRT 0x0008 /* Writable. */
#define EISD__M_INITALCODE 0x0010 /* Part of initialization code. */
#define EISD__M_BASED 0x0020 /* Isect is based. */
#define EISD__M_FIXUPVEC 0x0040 /* Isect is fixup section. */
#define EISD__M_RESIDENT 0x0080 /* Isect is memory resident. */
#define EISD__M_VECTOR 0x0100 /* Vector contained in isect. */
#define EISD__M_PROTECT 0x0200 /* Isect is proected. */
#define EISD__M_LASTCLU 0x0400 /* Last cluster. */
#define EISD__M_EXE 0x0800 /* Code isect. */
#define EISD__M_NONSHRADR 0x1000 /* Contains non-shareable data. */
#define EISD__M_QUAD_LENGTH 0x2000 /* Quad length field valid. */
#define EISD__M_ALLOC_64BIT 0x4000 /* Allocate 64-bit space. */
struct vms_eisd
{
unsigned char majorid[4];
unsigned char minorid[4];
/* Size (in bytes) of this eisd. */
unsigned char eisdsize[4];
/* Size (in bytes) of the section. */
unsigned char secsize[4];
/* Virtual address of the section. */
unsigned char virt_addr[8];
/* Flags. */
unsigned char flags[4];
/* Base virtual block number. */
unsigned char vbn[4];
/* Page fault cluster. */
unsigned char pfc;
/* Linker match control. */
unsigned char matchctl;
/* Section type. */
unsigned char type;
unsigned char fill_1;
};
struct vms_eisd_ext
{
/* Ident for global section. */
unsigned char ident[4];
/* Global name ascic. First 8 bytes are quad length field. */
unsigned char gblnam[44];
};
/* EISD offsets. */
#define EISD__L_EISDSIZE 8
#define EISD__L_SECSIZE 12
#define EISD__Q_VIR_ADDR 16
#define EISD__L_FLAGS 24
#define EISD__L_VBN 28
#define EISD__R_CONTROL 32
#define EISD__L_IDENT 36
#define EISD__T_GBLNAM 40
#endif /* _VMS_EISD_H */
|