1 /* Alpha VMS external format of Extended Global Symbol Directory. 2 3 Copyright (C) 2010-2016 Free Software Foundation, Inc. 4 Written by Tristan Gingold <gingold@adacore.com>, AdaCore. 5 6 This file is part of BFD, the Binary File Descriptor library. 7 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. 12 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. 17 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. */ 22 23 #ifndef _VMS_EGSD_H 24 #define _VMS_EGSD_H 25 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. */ 36 37 struct vms_egsd 38 { 39 /* Record type. */ 40 unsigned char rectyp[2]; 41 42 /* Record size. */ 43 unsigned char recsiz[2]; 44 45 /* Padding for alignment. */ 46 unsigned char alignlw[4]; 47 48 /* Followed by egsd entries. */ 49 }; 50 51 struct vms_egsd_entry 52 { 53 /* Entry type. */ 54 unsigned char gsdtyp[2]; 55 56 /* Length of the entry. */ 57 unsigned char gsdsiz[2]; 58 }; 59 60 #endif /* _VMS_EGSD_H */ 61