* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / include / vms / egsd.h
blobf9be3981aa8a91a4ca8ec715a86d9ac919325557
1 /* Alpha VMS external format of Extended Global Symbol Directory.
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_EGSD_H
24 #define _VMS_EGSD_H
26 #define EGSD__K_ENTRIES 2 /* Offset to first entry in record. */
27 #define EGSD__C_ENTRIES 2 /* Offset to first entry in record. */
28 #define EGSD__C_PSC 0 /* Psect definition. */
29 #define EGSD__C_SYM 1 /* Symbol specification. */
30 #define EGSD__C_IDC 2 /* Random entity check. */
31 #define EGSD__C_SPSC 5 /* Shareable image psect definition. */
32 #define EGSD__C_SYMV 6 /* Vectored (dual-valued) versions of SYM. */
33 #define EGSD__C_SYMM 7 /* Masked versions of SYM. */
34 #define EGSD__C_SYMG 8 /* EGST - gst version of SYM. */
35 #define EGSD__C_MAXRECTYP 8 /* Maximum entry type defined. */
37 struct vms_egsd
39 /* Record type. */
40 unsigned char rectyp[2];
42 /* Record size. */
43 unsigned char recsiz[2];
45 /* Padding for alignment. */
46 unsigned char alignlw[4];
48 /* Followed by egsd entries. */
51 struct vms_egsd_entry
53 /* Entry type. */
54 unsigned char gsdtyp[2];
56 /* Length of the entry. */
57 unsigned char gsdsiz[2];
60 #endif /* _VMS_EGSD_H */