1*3d8817e4Smiod #undef vms 2*3d8817e4Smiod /* vms.h -- Header file for VMS (Alpha and Vax) support. 3*3d8817e4Smiod Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 4*3d8817e4Smiod Free Software Foundation, Inc. 5*3d8817e4Smiod 6*3d8817e4Smiod Written by Klaus K"ampf (kkaempf@rmi.de) 7*3d8817e4Smiod 8*3d8817e4Smiod This file is part of BFD, the Binary File Descriptor library. 9*3d8817e4Smiod 10*3d8817e4Smiod This program is free software; you can redistribute it and/or modify 11*3d8817e4Smiod it under the terms of the GNU General Public License as published by 12*3d8817e4Smiod the Free Software Foundation; either version 2 of the License, or 13*3d8817e4Smiod (at your option) any later version. 14*3d8817e4Smiod 15*3d8817e4Smiod This program is distributed in the hope that it will be useful, 16*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of 17*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*3d8817e4Smiod GNU General Public License for more details. 19*3d8817e4Smiod 20*3d8817e4Smiod You should have received a copy of the GNU General Public License 21*3d8817e4Smiod along with this program; if not, write to the Free Software 22*3d8817e4Smiod Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 23*3d8817e4Smiod 24*3d8817e4Smiod #ifndef VMS_H 25*3d8817e4Smiod #define VMS_H 26*3d8817e4Smiod 27*3d8817e4Smiod /* Constants starting with 'Exxx_' are for openVMS/Alpha (EVAX object language) */ 28*3d8817e4Smiod 29*3d8817e4Smiod /* VMS Text, information and relocation record (TIR/ETIR) definitions. */ 30*3d8817e4Smiod 31*3d8817e4Smiod #define TIR_S_C_STA_GBL 0 32*3d8817e4Smiod #define TIR_S_C_STA_SB 1 33*3d8817e4Smiod #define TIR_S_C_STA_SW 2 34*3d8817e4Smiod #define TIR_S_C_STA_LW 3 35*3d8817e4Smiod #define TIR_S_C_STA_PB 4 36*3d8817e4Smiod #define TIR_S_C_STA_PW 5 37*3d8817e4Smiod #define TIR_S_C_STA_PL 6 38*3d8817e4Smiod #define TIR_S_C_STA_UB 7 39*3d8817e4Smiod #define TIR_S_C_STA_UW 8 40*3d8817e4Smiod #define TIR_S_C_STA_BFI 9 41*3d8817e4Smiod #define TIR_S_C_STA_WFI 10 42*3d8817e4Smiod #define TIR_S_C_STA_LFI 11 43*3d8817e4Smiod #define TIR_S_C_STA_EPM 12 44*3d8817e4Smiod #define TIR_S_C_STA_CKARG 13 45*3d8817e4Smiod #define TIR_S_C_STA_WPB 14 46*3d8817e4Smiod #define TIR_S_C_STA_WPW 15 47*3d8817e4Smiod #define TIR_S_C_STA_WPL 16 48*3d8817e4Smiod #define TIR_S_C_STA_LSY 17 49*3d8817e4Smiod #define TIR_S_C_STA_LIT 18 50*3d8817e4Smiod #define TIR_S_C_STA_LEPM 19 51*3d8817e4Smiod #define TIR_S_C_MAXSTACOD 19 52*3d8817e4Smiod #define TIR_S_C_MINSTOCOD 20 53*3d8817e4Smiod #define TIR_S_C_STO_SB 20 54*3d8817e4Smiod #define TIR_S_C_STO_SW 21 55*3d8817e4Smiod #define TIR_S_C_STO_L 22 56*3d8817e4Smiod #define TIR_S_C_STO_LW 22 57*3d8817e4Smiod #define TIR_S_C_STO_BD 23 58*3d8817e4Smiod #define TIR_S_C_STO_WD 24 59*3d8817e4Smiod #define TIR_S_C_STO_LD 25 60*3d8817e4Smiod #define TIR_S_C_STO_LI 26 61*3d8817e4Smiod #define TIR_S_C_STO_PIDR 27 62*3d8817e4Smiod #define TIR_S_C_STO_PICR 28 63*3d8817e4Smiod #define TIR_S_C_STO_RSB 29 64*3d8817e4Smiod #define TIR_S_C_STO_RSW 30 65*3d8817e4Smiod #define TIR_S_C_STO_RL 31 66*3d8817e4Smiod #define TIR_S_C_STO_VPS 32 67*3d8817e4Smiod #define TIR_S_C_STO_USB 33 68*3d8817e4Smiod #define TIR_S_C_STO_USW 34 69*3d8817e4Smiod #define TIR_S_C_STO_RUB 35 70*3d8817e4Smiod #define TIR_S_C_STO_RUW 36 71*3d8817e4Smiod #define TIR_S_C_STO_B 37 72*3d8817e4Smiod #define TIR_S_C_STO_W 38 73*3d8817e4Smiod #define TIR_S_C_STO_RB 39 74*3d8817e4Smiod #define TIR_S_C_STO_RW 40 75*3d8817e4Smiod #define TIR_S_C_STO_RIVB 41 76*3d8817e4Smiod #define TIR_S_C_STO_PIRR 42 77*3d8817e4Smiod #define TIR_S_C_MAXSTOCOD 42 78*3d8817e4Smiod #define TIR_S_C_MINOPRCOD 50 79*3d8817e4Smiod #define TIR_S_C_OPR_NOP 50 80*3d8817e4Smiod #define TIR_S_C_OPR_ADD 51 81*3d8817e4Smiod #define TIR_S_C_OPR_SUB 52 82*3d8817e4Smiod #define TIR_S_C_OPR_MUL 53 83*3d8817e4Smiod #define TIR_S_C_OPR_DIV 54 84*3d8817e4Smiod #define TIR_S_C_OPR_AND 55 85*3d8817e4Smiod #define TIR_S_C_OPR_IOR 56 86*3d8817e4Smiod #define TIR_S_C_OPR_EOR 57 87*3d8817e4Smiod #define TIR_S_C_OPR_NEG 58 88*3d8817e4Smiod #define TIR_S_C_OPR_COM 59 89*3d8817e4Smiod #define TIR_S_C_OPR_INSV 60 90*3d8817e4Smiod #define TIR_S_C_OPR_ASH 61 91*3d8817e4Smiod #define TIR_S_C_OPR_USH 62 92*3d8817e4Smiod #define TIR_S_C_OPR_ROT 63 93*3d8817e4Smiod #define TIR_S_C_OPR_SEL 64 94*3d8817e4Smiod #define TIR_S_C_OPR_REDEF 65 95*3d8817e4Smiod #define TIR_S_C_OPR_DFLIT 66 96*3d8817e4Smiod #define TIR_S_C_MAXOPRCOD 66 97*3d8817e4Smiod #define TIR_S_C_MINCTLCOD 80 98*3d8817e4Smiod #define TIR_S_C_CTL_SETRB 80 99*3d8817e4Smiod #define TIR_S_C_CTL_AUGRB 81 100*3d8817e4Smiod #define TIR_S_C_CTL_DFLOC 82 101*3d8817e4Smiod #define TIR_S_C_CTL_STLOC 83 102*3d8817e4Smiod #define TIR_S_C_CTL_STKDL 84 103*3d8817e4Smiod #define TIR_S_C_MAXCTLCOD 84 104*3d8817e4Smiod 105*3d8817e4Smiod #define ETIR_S_C_MINSTACOD 0 /* Minimum store code. */ 106*3d8817e4Smiod #define ETIR_S_C_STA_GBL 0 /* Stack global symbol value. */ 107*3d8817e4Smiod #define ETIR_S_C_STA_LW 1 /* Stack longword. */ 108*3d8817e4Smiod #define ETIR_S_C_STA_QW 2 /* Stack quadword. */ 109*3d8817e4Smiod #define ETIR_S_C_STA_PQ 3 /* Stack psect base plus quadword offset. */ 110*3d8817e4Smiod #define ETIR_S_C_STA_LI 4 /* Stack literal. */ 111*3d8817e4Smiod #define ETIR_S_C_STA_MOD 5 /* Stack module. */ 112*3d8817e4Smiod #define ETIR_S_C_STA_CKARG 6 /* Check Arguments. */ 113*3d8817e4Smiod #define ETIR_S_C_MAXSTACOD 6 /* Maximum stack code. */ 114*3d8817e4Smiod #define ETIR_S_C_MINSTOCOD 50 /* Minimum store code. */ 115*3d8817e4Smiod #define ETIR_S_C_STO_B 50 /* Store byte. */ 116*3d8817e4Smiod #define ETIR_S_C_STO_W 51 /* Store word. */ 117*3d8817e4Smiod #define ETIR_S_C_STO_LW 52 /* Store longword. */ 118*3d8817e4Smiod #define ETIR_S_C_STO_QW 53 /* Store quadword. */ 119*3d8817e4Smiod #define ETIR_S_C_STO_IMMR 54 /* Store immediate Repeated. */ 120*3d8817e4Smiod #define ETIR_S_C_STO_GBL 55 /* Store global. */ 121*3d8817e4Smiod #define ETIR_S_C_STO_CA 56 /* Store code address. */ 122*3d8817e4Smiod #define ETIR_S_C_STO_RB 57 /* Store relative branch. */ 123*3d8817e4Smiod #define ETIR_S_C_STO_AB 58 /* Store absolute branch. */ 124*3d8817e4Smiod #define ETIR_S_C_STO_OFF 59 /* Store offset within psect. */ 125*3d8817e4Smiod #define ETIR_S_C_STO_IMM 61 /* Store immediate. */ 126*3d8817e4Smiod #define ETIR_S_C_STO_GBL_LW 62 /* Store global Longword. */ 127*3d8817e4Smiod #define ETIR_S_C_STO_LP_PSB 63 /* STO_LP_PSB not valid in level 2 use STC_LP_PSB. */ 128*3d8817e4Smiod #define ETIR_S_C_STO_HINT_GBL 64 /* Store 14 bit HINT at global address. */ 129*3d8817e4Smiod #define ETIR_S_C_STO_HINT_PS 65 /* Store 14 bit HINT at psect + offset */ 130*3d8817e4Smiod #define ETIR_S_C_MAXSTOCOD 65 /* Maximum store code. */ 131*3d8817e4Smiod #define ETIR_S_C_MINOPRCOD 100 /* Minimum operate code. */ 132*3d8817e4Smiod #define ETIR_S_C_OPR_NOP 100 /* No-op. */ 133*3d8817e4Smiod #define ETIR_S_C_OPR_ADD 101 /* Add. */ 134*3d8817e4Smiod #define ETIR_S_C_OPR_SUB 102 /* Subtract. */ 135*3d8817e4Smiod #define ETIR_S_C_OPR_MUL 103 /* Multiply. */ 136*3d8817e4Smiod #define ETIR_S_C_OPR_DIV 104 /* Divide. */ 137*3d8817e4Smiod #define ETIR_S_C_OPR_AND 105 /* Logical AND. */ 138*3d8817e4Smiod #define ETIR_S_C_OPR_IOR 106 /* Logical inclusive OR. */ 139*3d8817e4Smiod #define ETIR_S_C_OPR_EOR 107 /* Logical exclusive OR. */ 140*3d8817e4Smiod #define ETIR_S_C_OPR_NEG 108 /* Negate. */ 141*3d8817e4Smiod #define ETIR_S_C_OPR_COM 109 /* Complement. */ 142*3d8817e4Smiod #define ETIR_S_C_OPR_INSV 110 /* Insert bit field. */ 143*3d8817e4Smiod #define ETIR_S_C_OPR_ASH 111 /* Arithmetic shift. */ 144*3d8817e4Smiod #define ETIR_S_C_OPR_USH 112 /* Unsigned shift. */ 145*3d8817e4Smiod #define ETIR_S_C_OPR_ROT 113 /* Rotate. */ 146*3d8817e4Smiod #define ETIR_S_C_OPR_SEL 114 /* Select one of three longwords on top of stack. */ 147*3d8817e4Smiod #define ETIR_S_C_OPR_REDEF 115 /* Redefine this symbol after pass 2. */ 148*3d8817e4Smiod #define ETIR_S_C_OPR_DFLIT 116 /* Define a literal. */ 149*3d8817e4Smiod #define ETIR_S_C_MAXOPRCOD 116 /* Maximum operate code. */ 150*3d8817e4Smiod #define ETIR_S_C_MINCTLCOD 150 /* Minimum control code. */ 151*3d8817e4Smiod #define ETIR_S_C_CTL_SETRB 150 /* Set relocation base. */ 152*3d8817e4Smiod #define ETIR_S_C_CTL_AUGRB 151 /* Augment relocation base. */ 153*3d8817e4Smiod #define ETIR_S_C_CTL_DFLOC 152 /* Define debug location. */ 154*3d8817e4Smiod #define ETIR_S_C_CTL_STLOC 153 /* Set debug location. */ 155*3d8817e4Smiod #define ETIR_S_C_CTL_STKDL 154 /* Stack debug location. */ 156*3d8817e4Smiod #define ETIR_S_C_MAXCTLCOD 154 /* Maximum control code. */ 157*3d8817e4Smiod #define ETIR_S_C_MINSTCCOD 200 /* Minimum store-conditional code. */ 158*3d8817e4Smiod #define ETIR_S_C_STC_LP 200 /* Store-conditional Linkage Pair. */ 159*3d8817e4Smiod #define ETIR_S_C_STC_LP_PSB 201 /* Store-conditional Linkage Pair with Procedure Signature. */ 160*3d8817e4Smiod #define ETIR_S_C_STC_GBL 202 /* Store-conditional Address at global address. */ 161*3d8817e4Smiod #define ETIR_S_C_STC_GCA 203 /* Store-conditional Code Address at global address. */ 162*3d8817e4Smiod #define ETIR_S_C_STC_PS 204 /* Store-conditional Address at psect + offset. */ 163*3d8817e4Smiod #define ETIR_S_C_STC_NOP_GBL 205 /* Store-conditional NOP at address of global. */ 164*3d8817e4Smiod #define ETIR_S_C_STC_NOP_PS 206 /* Store-conditional NOP at pect + offset. */ 165*3d8817e4Smiod #define ETIR_S_C_STC_BSR_GBL 207 /* Store-conditional BSR at global address. */ 166*3d8817e4Smiod #define ETIR_S_C_STC_BSR_PS 208 /* Store-conditional BSR at pect + offset. */ 167*3d8817e4Smiod #define ETIR_S_C_STC_LDA_GBL 209 /* Store-conditional LDA at global address. */ 168*3d8817e4Smiod #define ETIR_S_C_STC_LDA_PS 210 /* Store-conditional LDA at psect + offset. */ 169*3d8817e4Smiod #define ETIR_S_C_STC_BOH_GBL 211 /* Store-conditional BSR or Hint at global address. */ 170*3d8817e4Smiod #define ETIR_S_C_STC_BOH_PS 212 /* Store-conditional BSR or Hint at pect + offset. */ 171*3d8817e4Smiod #define ETIR_S_C_STC_NBH_GBL 213 /* Store-conditional NOP,BSR or HINT at global address. */ 172*3d8817e4Smiod #define ETIR_S_C_STC_NBH_PS 214 /* Store-conditional NOP,BSR or HINT at psect + offset. */ 173*3d8817e4Smiod #define ETIR_S_C_MAXSTCCOD 214 /* Maximum store-conditional code. */ 174*3d8817e4Smiod 175*3d8817e4Smiod /* VMS Global symbol definition record (GSD/EGSD). */ 176*3d8817e4Smiod 177*3d8817e4Smiod #define GSD_S_K_ENTRIES 1 178*3d8817e4Smiod #define GSD_S_C_ENTRIES 1 179*3d8817e4Smiod #define GSD_S_C_PSC 0 180*3d8817e4Smiod #define GSD_S_C_SYM 1 181*3d8817e4Smiod #define GSD_S_C_EPM 2 182*3d8817e4Smiod #define GSD_S_C_PRO 3 183*3d8817e4Smiod #define GSD_S_C_SYMW 4 184*3d8817e4Smiod #define GSD_S_C_EPMW 5 185*3d8817e4Smiod #define GSD_S_C_PROW 6 186*3d8817e4Smiod #define GSD_S_C_IDC 7 187*3d8817e4Smiod #define GSD_S_C_ENV 8 188*3d8817e4Smiod #define GSD_S_C_LSY 9 189*3d8817e4Smiod #define GSD_S_C_LEPM 10 190*3d8817e4Smiod #define GSD_S_C_LPRO 11 191*3d8817e4Smiod #define GSD_S_C_SPSC 12 192*3d8817e4Smiod #define GSD_S_C_SYMV 13 193*3d8817e4Smiod #define GSD_S_C_EPMV 14 194*3d8817e4Smiod #define GSD_S_C_PROV 15 195*3d8817e4Smiod #define GSD_S_C_MAXRECTYP 15 196*3d8817e4Smiod 197*3d8817e4Smiod #define EGSD_S_K_ENTRIES 2 /* Offset to first entry in record. */ 198*3d8817e4Smiod #define EGSD_S_C_ENTRIES 2 /* Offset to first entry in record. */ 199*3d8817e4Smiod #define EGSD_S_C_PSC 0 /* Psect definition. */ 200*3d8817e4Smiod #define EGSD_S_C_SYM 1 /* Symbol specification. */ 201*3d8817e4Smiod #define EGSD_S_C_IDC 2 /* Random entity check. */ 202*3d8817e4Smiod #define EGSD_S_C_SPSC 5 /* Shareable image psect definition. */ 203*3d8817e4Smiod #define EGSD_S_C_SYMV 6 /* Vectored (dual-valued) versions of SYM. */ 204*3d8817e4Smiod #define EGSD_S_C_SYMM 7 /* Masked versions of SYM. */ 205*3d8817e4Smiod #define EGSD_S_C_SYMG 8 /* EGST - gst version of SYM. */ 206*3d8817e4Smiod #define EGSD_S_C_MAXRECTYP 8 /* Maximum entry type defined. */ 207*3d8817e4Smiod 208*3d8817e4Smiod #define GPS_S_M_PIC 1 209*3d8817e4Smiod #define GPS_S_M_LIB 2 210*3d8817e4Smiod #define GPS_S_M_OVR 4 211*3d8817e4Smiod #define GPS_S_M_REL 8 212*3d8817e4Smiod #define GPS_S_M_GBL 16 213*3d8817e4Smiod #define GPS_S_M_SHR 32 214*3d8817e4Smiod #define GPS_S_M_EXE 64 215*3d8817e4Smiod #define GPS_S_M_RD 128 216*3d8817e4Smiod #define GPS_S_M_WRT 256 217*3d8817e4Smiod #define GPS_S_M_VEC 512 218*3d8817e4Smiod #define GPS_S_K_NAME 9 219*3d8817e4Smiod #define GPS_S_C_NAME 9 220*3d8817e4Smiod 221*3d8817e4Smiod #define EGPS_S_V_PIC 0x0001 222*3d8817e4Smiod #define EGPS_S_V_LIB 0x0002 223*3d8817e4Smiod #define EGPS_S_V_OVR 0x0004 224*3d8817e4Smiod #define EGPS_S_V_REL 0x0008 225*3d8817e4Smiod #define EGPS_S_V_GBL 0x0010 226*3d8817e4Smiod #define EGPS_S_V_SHR 0x0020 227*3d8817e4Smiod #define EGPS_S_V_EXE 0x0040 228*3d8817e4Smiod #define EGPS_S_V_RD 0x0080 229*3d8817e4Smiod #define EGPS_S_V_WRT 0x0100 230*3d8817e4Smiod #define EGPS_S_V_VEC 0x0200 231*3d8817e4Smiod #define EGPS_S_V_NOMOD 0x0400 232*3d8817e4Smiod #define EGPS_S_V_COM 0x0800 233*3d8817e4Smiod 234*3d8817e4Smiod #define GSY_S_M_WEAK 1 235*3d8817e4Smiod #define GSY_S_M_DEF 2 236*3d8817e4Smiod #define GSY_S_M_UNI 4 237*3d8817e4Smiod #define GSY_S_M_REL 8 238*3d8817e4Smiod 239*3d8817e4Smiod #define EGSY_S_V_WEAK 0x0001 240*3d8817e4Smiod #define EGSY_S_V_DEF 0x0002 241*3d8817e4Smiod #define EGSY_S_V_UNI 0x0004 242*3d8817e4Smiod #define EGSY_S_V_REL 0x0008 243*3d8817e4Smiod #define EGSY_S_V_COMM 0x0010 244*3d8817e4Smiod #define EGSY_S_V_VECEP 0x0020 245*3d8817e4Smiod #define EGSY_S_V_NORM 0x0040 246*3d8817e4Smiod 247*3d8817e4Smiod #define LSY_S_M_DEF 2 248*3d8817e4Smiod #define LSY_S_M_REL 8 249*3d8817e4Smiod 250*3d8817e4Smiod #define ENV_S_M_DEF 1 251*3d8817e4Smiod #define ENV_S_M_NESTED 2 252*3d8817e4Smiod 253*3d8817e4Smiod /* Debugger symbol definitions: These are done by hand, 254*3d8817e4Smiod as no machine-readable version seems to be available. */ 255*3d8817e4Smiod #define DST_S_C_C 7 /* Language == "C". */ 256*3d8817e4Smiod #define DST_S_C_CXX 15 /* Language == "C++". */ 257*3d8817e4Smiod #define DST_S_C_VERSION 153 258*3d8817e4Smiod #define DST_S_C_SOURCE 155 /* Source file. */ 259*3d8817e4Smiod #define DST_S_C_PROLOG 162 260*3d8817e4Smiod #define DST_S_C_BLKBEG 176 /* Beginning of block. */ 261*3d8817e4Smiod #define DST_S_C_BLKEND 177 /* End of block. */ 262*3d8817e4Smiod #define DST_S_C_ENTRY 181 263*3d8817e4Smiod #define DST_S_C_PSECT 184 264*3d8817e4Smiod #define DST_S_C_LINE_NUM 185 /* Line Number. */ 265*3d8817e4Smiod #define DST_S_C_LBLORLIT 186 266*3d8817e4Smiod #define DST_S_C_LABEL 187 267*3d8817e4Smiod #define DST_S_C_MODBEG 188 /* Beginning of module. */ 268*3d8817e4Smiod #define DST_S_C_MODEND 189 /* End of module. */ 269*3d8817e4Smiod #define DST_S_C_RTNBEG 190 /* Beginning of routine.*/ 270*3d8817e4Smiod #define DST_S_C_RTNEND 191 /* End of routine. */ 271*3d8817e4Smiod #define DST_S_C_DELTA_PC_W 1 /* Incr PC. */ 272*3d8817e4Smiod #define DST_S_C_INCR_LINUM 2 /* Incr Line #. */ 273*3d8817e4Smiod #define DST_S_C_INCR_LINUM_W 3 /* Incr Line #. */ 274*3d8817e4Smiod #define DST_S_C_SET_LINUM_INCR 4 275*3d8817e4Smiod #define DST_S_C_SET_LINUM_INCR_W 5 276*3d8817e4Smiod #define DST_S_C_RESET_LINUM_INCR 6 277*3d8817e4Smiod #define DST_S_C_BEG_STMT_MODE 7 278*3d8817e4Smiod #define DST_S_C_END_STMT_MODE 8 279*3d8817e4Smiod #define DST_S_C_SET_LINE_NUM 9 /* Set Line #. */ 280*3d8817e4Smiod #define DST_S_C_SET_PC 10 281*3d8817e4Smiod #define DST_S_C_SET_PC_W 11 282*3d8817e4Smiod #define DST_S_C_SET_PC_L 12 283*3d8817e4Smiod #define DST_S_C_SET_STMTNUM 13 284*3d8817e4Smiod #define DST_S_C_TERM 14 /* End of lines. */ 285*3d8817e4Smiod #define DST_S_C_TERM_W 15 /* End of lines. */ 286*3d8817e4Smiod #define DST_S_C_SET_ABS_PC 16 /* Set PC. */ 287*3d8817e4Smiod #define DST_S_C_DELTA_PC_L 17 /* Incr PC. */ 288*3d8817e4Smiod #define DST_S_C_INCR_LINUM_L 18 /* Incr Line #. */ 289*3d8817e4Smiod #define DST_S_C_SET_LINUM_B 19 /* Set Line #. */ 290*3d8817e4Smiod #define DST_S_C_SET_LINUM_L 20 /* Set Line #. */ 291*3d8817e4Smiod #define DST_S_C_TERM_L 21 /* End of lines. */ 292*3d8817e4Smiod /* These are used with DST_S_C_SOURCE */ 293*3d8817e4Smiod #define DST_S_C_SRC_DECLFILE 1 /* Declare source file. */ 294*3d8817e4Smiod #define DST_S_C_SRC_SETFILE 2 /* Set source file. */ 295*3d8817e4Smiod #define DST_S_C_SRC_SETREC_L 3 /* Set record, longword value. */ 296*3d8817e4Smiod #define DST_S_C_SRC_SETREC_W 4 /* Set record, word value. */ 297*3d8817e4Smiod #define DST_S_C_SRC_DEFLINES_W 10 /* # of line, word counter. */ 298*3d8817e4Smiod #define DST_S_C_SRC_DEFLINES_B 11 /* # of line, byte counter. */ 299*3d8817e4Smiod #define DST_S_C_SRC_FORMFEED 16 /* ^L counts as a record. */ 300*3d8817e4Smiod /* The following are the codes for the various data types. Anything not on 301*3d8817e4Smiod the list is included under 'advanced_type'. */ 302*3d8817e4Smiod #define DBG_S_C_UCHAR 0x02 303*3d8817e4Smiod #define DBG_S_C_USINT 0x03 304*3d8817e4Smiod #define DBG_S_C_ULINT 0x04 305*3d8817e4Smiod #define DBG_S_C_UQUAD 0x05 306*3d8817e4Smiod #define DBG_S_C_SCHAR 0x06 307*3d8817e4Smiod #define DBG_S_C_SSINT 0x07 308*3d8817e4Smiod #define DBG_S_C_SLINT 0x08 309*3d8817e4Smiod #define DBG_S_C_SQUAD 0x09 310*3d8817e4Smiod #define DBG_S_C_REAL4 0x0a 311*3d8817e4Smiod #define DBG_S_C_REAL8 0x0b /* D_float double. */ 312*3d8817e4Smiod #define DBG_S_C_COMPLX4 0x0c /* 2xF_float complex float. */ 313*3d8817e4Smiod #define DBG_S_C_COMPLX8 0x0d /* 2xD_float complex double. */ 314*3d8817e4Smiod #define DBG_S_C_REAL8_G 0x1b /* G_float double. */ 315*3d8817e4Smiod #define DBG_S_C_COMPLX8_G 0x1d /* 2xG_float complex double. */ 316*3d8817e4Smiod #define DBG_S_C_FUNCTION_ADDR 0x17 317*3d8817e4Smiod #define DBG_S_C_ADVANCED_TYPE 0xa3 318*3d8817e4Smiod /* Some of these are just for future reference. [pr]. */ 319*3d8817e4Smiod #define DBG_S_C_UBITA 0x01 /* Unsigned, aligned bit field. */ 320*3d8817e4Smiod #define DBG_S_C_UBITU 0x22 /* Unsigned, unaligned bit field. */ 321*3d8817e4Smiod #define DBG_S_C_SBITA 0x29 /* Signed, aligned bit field. */ 322*3d8817e4Smiod #define DBG_S_C_SBITU 0x2a /* Signed, unaligned bit field. */ 323*3d8817e4Smiod #define DBG_S_C_CSTRING 0x2e /* Asciz ('\0' terminated) string. */ 324*3d8817e4Smiod #define DBG_S_C_WCHAR 0x38 /* Wchar_t. */ 325*3d8817e4Smiod /* These are descriptor class codes. */ 326*3d8817e4Smiod #define DSC_K_CLASS_S 0x01 /* Static (fixed length). */ 327*3d8817e4Smiod #define DSC_K_CLASS_D 0x02 /* Dynamic string (not via malloc!). */ 328*3d8817e4Smiod #define DSC_K_CLASS_A 0x04 /* Array. */ 329*3d8817e4Smiod #define DSC_K_CLASS_UBS 0x0d /* Unaligned bit string. */ 330*3d8817e4Smiod /* These are the codes that are used to generate the definitions of struct 331*3d8817e4Smiod union and enum records. */ 332*3d8817e4Smiod #define DBG_S_C_ENUM_ITEM 0xa4 333*3d8817e4Smiod #define DBG_S_C_ENUM_START 0xa5 334*3d8817e4Smiod #define DBG_S_C_ENUM_END 0xa6 335*3d8817e4Smiod #define DBG_S_C_STRUCT_ITEM DST_K_VFLAGS_BITOFFS /* 0xff */ 336*3d8817e4Smiod #define DBG_S_C_STRUCT_START 0xab 337*3d8817e4Smiod #define DBG_S_C_STRUCT_END 0xac 338*3d8817e4Smiod #define DST_K_TYPSPEC 0xaf /* Type specification. */ 339*3d8817e4Smiod /* These codes are used in the generation of the symbol definition records. */ 340*3d8817e4Smiod #define DST_K_VFLAGS_NOVAL 0x80 /* Struct definition only. */ 341*3d8817e4Smiod #define DST_K_VFLAGS_DSC 0xfa /* Descriptor used. */ 342*3d8817e4Smiod #define DST_K_VFLAGS_TVS 0xfb /* Trailing value specified. */ 343*3d8817e4Smiod #define DST_K_VS_FOLLOWS 0xfd /* Value spec follows. */ 344*3d8817e4Smiod #define DST_K_VFLAGS_BITOFFS 0xff /* Value contains bit offset. */ 345*3d8817e4Smiod #define DST_K_VALKIND_LITERAL 0 346*3d8817e4Smiod #define DST_K_VALKIND_ADDR 1 347*3d8817e4Smiod #define DST_K_VALKIND_DESC 2 348*3d8817e4Smiod #define DST_K_VALKIND_REG 3 349*3d8817e4Smiod #define DST_K_REG_VAX_AP 0x0c /* R12. */ 350*3d8817e4Smiod #define DST_K_REG_VAX_FP 0x0d /* R13. */ 351*3d8817e4Smiod #define DST_K_REG_VAX_SP 0x0e /* R14. */ 352*3d8817e4Smiod #define DST_V_VALKIND 0 /* Offset of valkind field. */ 353*3d8817e4Smiod #define DST_V_INDIRECT 2 /* Offset to indirect bit. */ 354*3d8817e4Smiod #define DST_V_DISP 3 /* Offset to displacement bit. */ 355*3d8817e4Smiod #define DST_V_REGNUM 4 /* Offset to register number. */ 356*3d8817e4Smiod #define DST_M_INDIRECT (1<<DST_V_INDIRECT) 357*3d8817e4Smiod #define DST_M_DISP (1<<DST_V_DISP) 358*3d8817e4Smiod #define DBG_C_FUNCTION_PARAM /* 0xc9 */ \ 359*3d8817e4Smiod (DST_K_VALKIND_ADDR|DST_M_DISP|(DST_K_REG_VAX_AP<<DST_V_REGNUM)) 360*3d8817e4Smiod #define DBG_C_LOCAL_SYM /* 0xd9 */ \ 361*3d8817e4Smiod (DST_K_VALKIND_ADDR|DST_M_DISP|(DST_K_REG_VAX_FP<<DST_V_REGNUM)) 362*3d8817e4Smiod /* Kinds of value specifications. */ 363*3d8817e4Smiod #define DST_K_VS_ALLOC_SPLIT 3 /* Split lifetime. */ 364*3d8817e4Smiod /* Kinds of type specifications. */ 365*3d8817e4Smiod #define DST_K_TS_ATOM 0x01 /* Atomic type specification. */ 366*3d8817e4Smiod #define DST_K_TS_DSC 0x02 /* Descriptor type spec. */ 367*3d8817e4Smiod #define DST_K_TS_IND 0x03 /* Indirect type specification. */ 368*3d8817e4Smiod #define DST_K_TS_TPTR 0x04 /* Typed pointer type spec. */ 369*3d8817e4Smiod #define DST_K_TS_PTR 0x05 /* Pointer type spec. */ 370*3d8817e4Smiod #define DST_K_TS_ARRAY 0x07 /* Array type spec. */ 371*3d8817e4Smiod #define DST_K_TS_NOV_LENG 0x0e /* Novel length type spec. */ 372*3d8817e4Smiod /* These are the codes that are used in the suffix records to determine the 373*3d8817e4Smiod actual data type. */ 374*3d8817e4Smiod #define DBG_S_C_BASIC DST_K_TS_ATOM 375*3d8817e4Smiod #define DBG_S_C_BASIC_ARRAY DST_K_TS_DSC 376*3d8817e4Smiod #define DBG_S_C_STRUCT DST_K_TS_IND 377*3d8817e4Smiod #define DBG_S_C_POINTER DST_K_TS_TPTR 378*3d8817e4Smiod #define DBG_S_C_VOID DST_K_TS_PTR 379*3d8817e4Smiod #define DBG_S_C_COMPLEX_ARRAY DST_K_TS_ARRAY 380*3d8817e4Smiod 381*3d8817e4Smiod /* VMS Module header record (EMH) definitions. */ 382*3d8817e4Smiod 383*3d8817e4Smiod #define MHD_S_C_MHD 0 384*3d8817e4Smiod #define MHD_S_C_LNM 1 385*3d8817e4Smiod #define MHD_S_C_SRC 2 386*3d8817e4Smiod #define MHD_S_C_TTL 3 387*3d8817e4Smiod #define MHD_S_C_CPR 4 388*3d8817e4Smiod #define MHD_S_C_MTC 5 389*3d8817e4Smiod #define MHD_S_C_GTX 6 390*3d8817e4Smiod #define MHD_S_C_MAXHDRTYP 6 391*3d8817e4Smiod 392*3d8817e4Smiod #define EMH_S_C_MHD 0 /* Main header record. */ 393*3d8817e4Smiod #define EMH_S_C_LNM 1 /* Language name and version. */ 394*3d8817e4Smiod #define EMH_S_C_SRC 2 /* Source file specification. */ 395*3d8817e4Smiod #define EMH_S_C_TTL 3 /* Title text of module. */ 396*3d8817e4Smiod #define EMH_S_C_CPR 4 /* Copyright notice. */ 397*3d8817e4Smiod #define EMH_S_C_MTC 5 /* Maintenance status. */ 398*3d8817e4Smiod #define EMH_S_C_GTX 6 /* General text. */ 399*3d8817e4Smiod #define EMH_S_C_MAXHDRTYP 6 /* Maximum allowable type. */ 400*3d8817e4Smiod 401*3d8817e4Smiod /* vms.c. */ 402*3d8817e4Smiod 403*3d8817e4Smiod extern asymbol *_bfd_vms_make_empty_symbol (bfd *); 404*3d8817e4Smiod 405*3d8817e4Smiod /* vms-gsd.c. */ 406*3d8817e4Smiod 407*3d8817e4Smiod extern int _bfd_vms_slurp_gsd (bfd *, int); 408*3d8817e4Smiod extern int _bfd_vms_write_gsd (bfd *, int); 409*3d8817e4Smiod 410*3d8817e4Smiod /* vms-mhd.c. */ 411*3d8817e4Smiod 412*3d8817e4Smiod extern int _bfd_vms_slurp_hdr (bfd *, int); 413*3d8817e4Smiod extern int _bfd_vms_write_hdr (bfd *, int); 414*3d8817e4Smiod extern int _bfd_vms_slurp_eom (bfd *, int); 415*3d8817e4Smiod extern int _bfd_vms_write_eom (bfd *, int); 416*3d8817e4Smiod 417*3d8817e4Smiod /* vms-tir.c. */ 418*3d8817e4Smiod 419*3d8817e4Smiod extern int _bfd_vms_slurp_tir (bfd *, int); 420*3d8817e4Smiod extern int _bfd_vms_slurp_dbg (bfd *, int); 421*3d8817e4Smiod extern int _bfd_vms_slurp_tbt (bfd *, int); 422*3d8817e4Smiod extern int _bfd_vms_slurp_lnk (bfd *, int); 423*3d8817e4Smiod 424*3d8817e4Smiod extern int _bfd_vms_write_tir (bfd *, int); 425*3d8817e4Smiod extern int _bfd_vms_write_tbt (bfd *, int); 426*3d8817e4Smiod extern int _bfd_vms_write_dbg (bfd *, int); 427*3d8817e4Smiod 428*3d8817e4Smiod /* The r_type field in a reloc is one of he following values. */ 429*3d8817e4Smiod #define ALPHA_R_IGNORE 0 430*3d8817e4Smiod #define ALPHA_R_REFQUAD 1 431*3d8817e4Smiod #define ALPHA_R_BRADDR 2 432*3d8817e4Smiod #define ALPHA_R_HINT 3 433*3d8817e4Smiod #define ALPHA_R_SREL16 4 434*3d8817e4Smiod #define ALPHA_R_SREL32 5 435*3d8817e4Smiod #define ALPHA_R_SREL64 6 436*3d8817e4Smiod #define ALPHA_R_OP_PUSH 7 437*3d8817e4Smiod #define ALPHA_R_OP_STORE 8 438*3d8817e4Smiod #define ALPHA_R_OP_PSUB 9 439*3d8817e4Smiod #define ALPHA_R_OP_PRSHIFT 10 440*3d8817e4Smiod #define ALPHA_R_LINKAGE 11 441*3d8817e4Smiod #define ALPHA_R_REFLONG 12 442*3d8817e4Smiod #define ALPHA_R_CODEADDR 13 443*3d8817e4Smiod 444*3d8817e4Smiod /* Object language definitions. */ 445*3d8817e4Smiod 446*3d8817e4Smiod #define OBJ_S_C_HDR 0 /* VAX moule header record. */ 447*3d8817e4Smiod #define OBJ_S_C_GSD 1 /* VAX glbal symbol definition record. */ 448*3d8817e4Smiod #define OBJ_S_C_TIR 2 /* VAX tet information record. */ 449*3d8817e4Smiod #define OBJ_S_C_EOM 3 /* VAX en of module record. */ 450*3d8817e4Smiod #define OBJ_S_C_DBG 4 /* VAX Deugger information record. */ 451*3d8817e4Smiod #define OBJ_S_C_TBT 5 /* VAX Trceback information record. */ 452*3d8817e4Smiod #define OBJ_S_C_LNK 6 /* VAX liker options record. */ 453*3d8817e4Smiod #define OBJ_S_C_EOMW 7 /* VAX en of module word-psect record. */ 454*3d8817e4Smiod #define OBJ_S_C_MAXRECTYP 7 /* VAX Lat assigned record type. */ 455*3d8817e4Smiod #define EOBJ_S_C_EMH 8 /* EVAX mdule header record. */ 456*3d8817e4Smiod #define EOBJ_S_C_EEOM 9 /* EVAX ed of module record. */ 457*3d8817e4Smiod #define EOBJ_S_C_EGSD 10 /* EVAX gobal symbol definition record.*/ 458*3d8817e4Smiod #define EOBJ_S_C_ETIR 11 /* EVAX txt information record. */ 459*3d8817e4Smiod #define EOBJ_S_C_EDBG 12 /* EVAX Dbugger information record. */ 460*3d8817e4Smiod #define EOBJ_S_C_ETBT 13 /* EVAX Taceback information record. */ 461*3d8817e4Smiod #define EOBJ_S_C_MAXRECTYP 13 /* EVAX Lst assigned record type. */ 462*3d8817e4Smiod #define OBJ_S_K_SUBTYP 1 463*3d8817e4Smiod #define OBJ_S_C_SUBTYP 1 464*3d8817e4Smiod #define EOBJ_S_K_SUBTYP 4 465*3d8817e4Smiod #define EOBJ_S_C_SUBTYP 4 466*3d8817e4Smiod #define OBJ_S_C_MAXRECSIZ 2048 /* Maximu legal record size. */ 467*3d8817e4Smiod #define EOBJ_S_C_MAXRECSIZ 8192 /* Maximu legal record size. */ 468*3d8817e4Smiod #define OBJ_S_C_STRLVL 0 /* Structre level. */ 469*3d8817e4Smiod #define EOBJ_S_C_STRLVL 2 /* Structre level. */ 470*3d8817e4Smiod #define OBJ_S_C_SYMSIZ 31 /* Maximu symbol length. */ 471*3d8817e4Smiod #define EOBJ_S_C_SYMSIZ 64 /* Maximu symbol length. */ 472*3d8817e4Smiod #define EOBJ_S_C_SECSIZ 31 /* Maximu section name length. */ 473*3d8817e4Smiod #define OBJ_S_C_STOREPLIM -1 /* Maximu repeat count on store commands. */ 474*3d8817e4Smiod #define EOBJ_S_C_STOREPLIM -1 /* Maximu repeat count on store commands. */ 475*3d8817e4Smiod #define OBJ_S_C_PSCALILIM 9 /* Maximu p-sect alignment. */ 476*3d8817e4Smiod #define EOBJ_S_C_PSCALILIM 16 /* Maximu p-sect alignment. */ 477*3d8817e4Smiod 478*3d8817e4Smiod #define EVAX_OFFSET 256 /* Type ofset for EVAX codes in switch. */ 479*3d8817e4Smiod /* Miscellaneous definitions. */ 480*3d8817e4Smiod 481*3d8817e4Smiod #if __GNUC__ 482*3d8817e4Smiod typedef unsigned long long uquad; 483*3d8817e4Smiod #else 484*3d8817e4Smiod typedef unsigned long uquad; 485*3d8817e4Smiod #endif 486*3d8817e4Smiod 487*3d8817e4Smiod #define MAX_OUTREC_SIZE 4096 488*3d8817e4Smiod #define MIN_OUTREC_LUFT 64 489*3d8817e4Smiod 490*3d8817e4Smiod typedef struct _vms_section 491*3d8817e4Smiod { 492*3d8817e4Smiod unsigned char *contents; 493*3d8817e4Smiod bfd_vma offset; 494*3d8817e4Smiod bfd_size_type size; 495*3d8817e4Smiod struct _vms_section *next; 496*3d8817e4Smiod } vms_section; 497*3d8817e4Smiod 498*3d8817e4Smiod extern vms_section * _bfd_get_vms_section (bfd *, int); 499*3d8817e4Smiod 500*3d8817e4Smiod typedef struct _vms_reloc 501*3d8817e4Smiod { 502*3d8817e4Smiod struct _vms_reloc *next; 503*3d8817e4Smiod arelent *reloc; 504*3d8817e4Smiod asection *section; 505*3d8817e4Smiod } vms_reloc; 506*3d8817e4Smiod 507*3d8817e4Smiod /* VMS module header. */ 508*3d8817e4Smiod 509*3d8817e4Smiod struct hdr_struc 510*3d8817e4Smiod { 511*3d8817e4Smiod int hdr_b_strlvl; 512*3d8817e4Smiod long hdr_l_arch1; 513*3d8817e4Smiod long hdr_l_arch2; 514*3d8817e4Smiod long hdr_l_recsiz; 515*3d8817e4Smiod char * hdr_t_name; 516*3d8817e4Smiod char * hdr_t_version; 517*3d8817e4Smiod char * hdr_t_date; 518*3d8817e4Smiod char * hdr_c_lnm; 519*3d8817e4Smiod char * hdr_c_src; 520*3d8817e4Smiod char * hdr_c_ttl; 521*3d8817e4Smiod }; 522*3d8817e4Smiod 523*3d8817e4Smiod /* VMS end of module. */ 524*3d8817e4Smiod 525*3d8817e4Smiod struct eom_struc 526*3d8817e4Smiod { 527*3d8817e4Smiod long eom_l_total_lps; 528*3d8817e4Smiod unsigned char eom_b_comcod; 529*3d8817e4Smiod bfd_boolean eom_has_transfer; 530*3d8817e4Smiod unsigned char eom_b_tfrflg; 531*3d8817e4Smiod long eom_l_psindx; 532*3d8817e4Smiod long eom_l_tfradr; 533*3d8817e4Smiod }; 534*3d8817e4Smiod 535*3d8817e4Smiod enum file_format_enum { FF_UNKNOWN, FF_FOREIGN, FF_NATIVE, FF_VAX }; 536*3d8817e4Smiod 537*3d8817e4Smiod typedef struct vms_symbol_struct 538*3d8817e4Smiod { 539*3d8817e4Smiod struct bfd_hash_entry bfd_hash; 540*3d8817e4Smiod asymbol *symbol; 541*3d8817e4Smiod } vms_symbol_entry; 542*3d8817e4Smiod 543*3d8817e4Smiod /* Stack value for push/pop commands. */ 544*3d8817e4Smiod 545*3d8817e4Smiod struct stack_struct 546*3d8817e4Smiod { 547*3d8817e4Smiod uquad value; 548*3d8817e4Smiod int psect; 549*3d8817e4Smiod }; 550*3d8817e4Smiod #define STACKSIZE 8192 551*3d8817e4Smiod 552*3d8817e4Smiod /* location stack definitions for CTL_DFLC, CTL_STLOC, and CTL_STKDL */ 553*3d8817e4Smiod 554*3d8817e4Smiod struct location_struct 555*3d8817e4Smiod { 556*3d8817e4Smiod unsigned long value; 557*3d8817e4Smiod int psect; 558*3d8817e4Smiod }; 559*3d8817e4Smiod #define LOCATION_SAVE_SIZE 32 560*3d8817e4Smiod 561*3d8817e4Smiod #define VMS_SECTION_COUNT 1024 562*3d8817e4Smiod 563*3d8817e4Smiod struct vms_private_data_struct 564*3d8817e4Smiod { 565*3d8817e4Smiod bfd_boolean is_vax; 566*3d8817e4Smiod bfd_boolean fixup_done; /* Flag to indicate if all 567*3d8817e4Smiod section pointers and PRIV(sections) 568*3d8817e4Smiod are set up correctly. */ 569*3d8817e4Smiod unsigned char *vms_buf; /* Buffer to record. */ 570*3d8817e4Smiod int buf_size; /* Max size of buffer. */ 571*3d8817e4Smiod unsigned char *vms_rec; /* Actual record ptr. */ 572*3d8817e4Smiod int rec_length; /* Remaining record length. */ 573*3d8817e4Smiod int rec_size; /* Actual record size. */ 574*3d8817e4Smiod int rec_type; /* Actual record type. */ 575*3d8817e4Smiod enum file_format_enum file_format; 576*3d8817e4Smiod 577*3d8817e4Smiod struct hdr_struc hdr_data; /* Data from HDR/EMH record. */ 578*3d8817e4Smiod struct eom_struc eom_data; /* Data from EOM/EEOM record. */ 579*3d8817e4Smiod unsigned int section_count; /* # of sections in following array. */ 580*3d8817e4Smiod asection **sections; /* Array of GSD/EGSD sections. */ 581*3d8817e4Smiod int gsd_sym_count; /* # of GSD/EGSD symbols. */ 582*3d8817e4Smiod asymbol **symbols; /* Vector of GSD/EGSD symbols. */ 583*3d8817e4Smiod struct proc_value *procedure; 584*3d8817e4Smiod 585*3d8817e4Smiod struct stack_struct *stack; 586*3d8817e4Smiod int stackptr; 587*3d8817e4Smiod 588*3d8817e4Smiod vms_section *vms_section_table[VMS_SECTION_COUNT]; 589*3d8817e4Smiod 590*3d8817e4Smiod struct bfd_hash_table *vms_symbol_table; 591*3d8817e4Smiod struct bfd_symbol **symcache; 592*3d8817e4Smiod int symnum; 593*3d8817e4Smiod 594*3d8817e4Smiod struct location_struct *location_stack; 595*3d8817e4Smiod 596*3d8817e4Smiod asection *image_section; /* Section for image_ptr. */ 597*3d8817e4Smiod unsigned char *image_ptr; /* A pointer to section->contents. */ 598*3d8817e4Smiod 599*3d8817e4Smiod unsigned char pdsc[8]; /* Procedure descriptor. */ 600*3d8817e4Smiod 601*3d8817e4Smiod /* Output routine storage. */ 602*3d8817e4Smiod unsigned char *output_buf; /* Output data. */ 603*3d8817e4Smiod int push_level; 604*3d8817e4Smiod int pushed_size; 605*3d8817e4Smiod int length_pos; 606*3d8817e4Smiod int output_size; 607*3d8817e4Smiod int output_alignment; 608*3d8817e4Smiod 609*3d8817e4Smiod /* Linkage index counter 610*3d8817e4Smiod used by conditional store commands (TIR_S_C_STC_). */ 611*3d8817e4Smiod int vms_linkage_index; 612*3d8817e4Smiod 613*3d8817e4Smiod /* see tc-alpha.c of gas for a descripton. */ 614*3d8817e4Smiod int flag_hash_long_names; /* -+, hash instead of truncate. */ 615*3d8817e4Smiod int flag_show_after_trunc; /* -H, shw hashing/truncation. */ 616*3d8817e4Smiod }; 617*3d8817e4Smiod 618*3d8817e4Smiod #define PRIV(name) ((struct vms_private_data_struct *) abfd->tdata.any)->name 619*3d8817e4Smiod 620*3d8817e4Smiod #define SECTION_NAME_TEMPLATE "__SEC__%d" 621*3d8817e4Smiod 622*3d8817e4Smiod #if VMS_DEBUG 623*3d8817e4Smiod extern void _bfd_vms_debug (int, char *, ...) ATTRIBUTE_PRINTF_2; 624*3d8817e4Smiod extern void _bfd_hexdump (int, unsigned char *, int, int); 625*3d8817e4Smiod 626*3d8817e4Smiod #define vms_debug _bfd_vms_debug 627*3d8817e4Smiod #endif 628*3d8817e4Smiod 629*3d8817e4Smiod extern struct bfd_hash_entry * _bfd_vms_hash_newfunc (struct bfd_hash_entry *, struct bfd_hash_table *, const char *); 630*3d8817e4Smiod extern void _bfd_vms_get_header_values (bfd *, unsigned char *, int *, int *); 631*3d8817e4Smiod extern int _bfd_vms_get_record (bfd *abf); 632*3d8817e4Smiod extern int _bfd_vms_next_record (bfd *abf); 633*3d8817e4Smiod extern char * _bfd_vms_save_sized_string (unsigned char *, int); 634*3d8817e4Smiod extern char * _bfd_vms_save_counted_string (unsigned char *); 635*3d8817e4Smiod extern void _bfd_vms_push (bfd *, uquad, int); 636*3d8817e4Smiod extern uquad _bfd_vms_pop (bfd *, int *); 637*3d8817e4Smiod extern bfd_boolean _bfd_save_vms_section (bfd *, asection *, const void *, file_ptr, bfd_size_type); 638*3d8817e4Smiod extern void _bfd_vms_output_begin (bfd *, int, int); 639*3d8817e4Smiod extern void _bfd_vms_output_alignment (bfd *, int); 640*3d8817e4Smiod extern void _bfd_vms_output_push (bfd *); 641*3d8817e4Smiod extern void _bfd_vms_output_pop (bfd *); 642*3d8817e4Smiod extern void _bfd_vms_output_flush (bfd *); 643*3d8817e4Smiod extern void _bfd_vms_output_end (bfd *); 644*3d8817e4Smiod extern int _bfd_vms_output_check (bfd *, int); 645*3d8817e4Smiod extern void _bfd_vms_output_byte (bfd *, unsigned); 646*3d8817e4Smiod extern void _bfd_vms_output_short (bfd *, unsigned); 647*3d8817e4Smiod extern void _bfd_vms_output_long (bfd *, unsigned long); 648*3d8817e4Smiod extern void _bfd_vms_output_quad (bfd *, uquad); 649*3d8817e4Smiod extern void _bfd_vms_output_counted (bfd *, char *); 650*3d8817e4Smiod extern void _bfd_vms_output_dump (bfd *, unsigned char *, int); 651*3d8817e4Smiod extern void _bfd_vms_output_fill (bfd *, int, int); 652*3d8817e4Smiod extern char * _bfd_vms_length_hash_symbol (bfd *, const char *, int); 653*3d8817e4Smiod extern vms_symbol_entry * _bfd_vms_enter_symbol (bfd *, char *); 654*3d8817e4Smiod 655*3d8817e4Smiod #endif /* VMS_H */ 656