1*98b9484cSchristos /* Declarations of constants for internal format of MIPS ECOFF symbols. 2*98b9484cSchristos Originally contributed by MIPS Computer Systems and Third Eye Software. 3*98b9484cSchristos Changes contributed by Cygnus Support are in the public domain. 4*98b9484cSchristos 5*98b9484cSchristos This file is just aggregated with the files that make up the GNU 6*98b9484cSchristos release; it is not considered part of GAS, GDB, or other GNU 7*98b9484cSchristos programs. */ 8*98b9484cSchristos 9*98b9484cSchristos /* 10*98b9484cSchristos * |-----------------------------------------------------------| 11*98b9484cSchristos * | Copyright (c) 1992, 1991, 1990 MIPS Computer Systems, Inc.| 12*98b9484cSchristos * | MIPS Computer Systems, Inc. grants reproduction and use | 13*98b9484cSchristos * | rights to all parties, PROVIDED that this comment is | 14*98b9484cSchristos * | maintained in the copy. | 15*98b9484cSchristos * |-----------------------------------------------------------| 16*98b9484cSchristos */ 17*98b9484cSchristos 18*98b9484cSchristos /* (C) Copyright 1984 by Third Eye Software, Inc. 19*98b9484cSchristos * 20*98b9484cSchristos * Third Eye Software, Inc. grants reproduction and use rights to 21*98b9484cSchristos * all parties, PROVIDED that this comment is maintained in the copy. 22*98b9484cSchristos * 23*98b9484cSchristos * Third Eye makes no claims about the applicability of this 24*98b9484cSchristos * symbol table to a particular use. 25*98b9484cSchristos */ 26*98b9484cSchristos 27*98b9484cSchristos /* glevels for field in FDR */ 28*98b9484cSchristos #define GLEVEL_0 2 29*98b9484cSchristos #define GLEVEL_1 1 30*98b9484cSchristos #define GLEVEL_2 0 /* for upward compat reasons. */ 31*98b9484cSchristos #define GLEVEL_3 3 32*98b9484cSchristos 33*98b9484cSchristos /* magic number fo symheader */ 34*98b9484cSchristos #define magicSym 0x7009 35*98b9484cSchristos /* The Alpha uses this value instead, for some reason. */ 36*98b9484cSchristos #define magicSym2 0x1992 37*98b9484cSchristos 38*98b9484cSchristos /* Language codes */ 39*98b9484cSchristos #define langC 0 40*98b9484cSchristos #define langPascal 1 41*98b9484cSchristos #define langFortran 2 42*98b9484cSchristos #define langAssembler 3 /* one Assembley inst might map to many mach */ 43*98b9484cSchristos #define langMachine 4 44*98b9484cSchristos #define langNil 5 45*98b9484cSchristos #define langAda 6 46*98b9484cSchristos #define langPl1 7 47*98b9484cSchristos #define langCobol 8 48*98b9484cSchristos #define langStdc 9 /* FIXME: Collides with SGI langCplusplus */ 49*98b9484cSchristos #define langCplusplus 9 /* FIXME: Collides with langStdc */ 50*98b9484cSchristos #define langCplusplusV2 10 /* SGI addition */ 51*98b9484cSchristos #define langMax 11 /* maximum allowed 32 -- 5 bits */ 52*98b9484cSchristos 53*98b9484cSchristos /* The following are value definitions for the fields in the SYMR */ 54*98b9484cSchristos 55*98b9484cSchristos /* 56*98b9484cSchristos * Storage Classes 57*98b9484cSchristos */ 58*98b9484cSchristos 59*98b9484cSchristos #define scNil 0 60*98b9484cSchristos #define scText 1 /* text symbol */ 61*98b9484cSchristos #define scData 2 /* initialized data symbol */ 62*98b9484cSchristos #define scBss 3 /* un-initialized data symbol */ 63*98b9484cSchristos #define scRegister 4 /* value of symbol is register number */ 64*98b9484cSchristos #define scAbs 5 /* value of symbol is absolute */ 65*98b9484cSchristos #define scUndefined 6 /* who knows? */ 66*98b9484cSchristos #define scCdbLocal 7 /* variable's value is IN se->va.?? */ 67*98b9484cSchristos #define scBits 8 /* this is a bit field */ 68*98b9484cSchristos #define scCdbSystem 9 /* variable's value is IN CDB's address space */ 69*98b9484cSchristos #define scDbx 9 /* overlap dbx internal use */ 70*98b9484cSchristos #define scRegImage 10 /* register value saved on stack */ 71*98b9484cSchristos #define scInfo 11 /* symbol contains debugger information */ 72*98b9484cSchristos #define scUserStruct 12 /* address in struct user for current process */ 73*98b9484cSchristos #define scSData 13 /* load time only small data */ 74*98b9484cSchristos #define scSBss 14 /* load time only small common */ 75*98b9484cSchristos #define scRData 15 /* load time only read only data */ 76*98b9484cSchristos #define scVar 16 /* Var parameter (fortran,pascal) */ 77*98b9484cSchristos #define scCommon 17 /* common variable */ 78*98b9484cSchristos #define scSCommon 18 /* small common */ 79*98b9484cSchristos #define scVarRegister 19 /* Var parameter in a register */ 80*98b9484cSchristos #define scVariant 20 /* Variant record */ 81*98b9484cSchristos #define scSUndefined 21 /* small undefined(external) data */ 82*98b9484cSchristos #define scInit 22 /* .init section symbol */ 83*98b9484cSchristos #define scBasedVar 23 /* Fortran or PL/1 ptr based var */ 84*98b9484cSchristos #define scXData 24 /* exception handling data */ 85*98b9484cSchristos #define scPData 25 /* Procedure section */ 86*98b9484cSchristos #define scFini 26 /* .fini section */ 87*98b9484cSchristos #define scRConst 27 /* .rconst section */ 88*98b9484cSchristos #define scMax 32 89*98b9484cSchristos 90*98b9484cSchristos 91*98b9484cSchristos /* 92*98b9484cSchristos * Symbol Types 93*98b9484cSchristos */ 94*98b9484cSchristos 95*98b9484cSchristos #define stNil 0 /* Nuthin' special */ 96*98b9484cSchristos #define stGlobal 1 /* external symbol */ 97*98b9484cSchristos #define stStatic 2 /* static */ 98*98b9484cSchristos #define stParam 3 /* procedure argument */ 99*98b9484cSchristos #define stLocal 4 /* local variable */ 100*98b9484cSchristos #define stLabel 5 /* label */ 101*98b9484cSchristos #define stProc 6 /* " " Procedure */ 102*98b9484cSchristos #define stBlock 7 /* beginnning of block */ 103*98b9484cSchristos #define stEnd 8 /* end (of anything) */ 104*98b9484cSchristos #define stMember 9 /* member (of anything - struct/union/enum */ 105*98b9484cSchristos #define stTypedef 10 /* type definition */ 106*98b9484cSchristos #define stFile 11 /* file name */ 107*98b9484cSchristos #define stRegReloc 12 /* register relocation */ 108*98b9484cSchristos #define stForward 13 /* forwarding address */ 109*98b9484cSchristos #define stStaticProc 14 /* load time only static procs */ 110*98b9484cSchristos #define stConstant 15 /* const */ 111*98b9484cSchristos #define stStaParam 16 /* Fortran static parameters */ 112*98b9484cSchristos /* These new symbol types have been recently added to SGI machines. */ 113*98b9484cSchristos #define stStruct 26 /* Beginning of block defining a struct type */ 114*98b9484cSchristos #define stUnion 27 /* Beginning of block defining a union type */ 115*98b9484cSchristos #define stEnum 28 /* Beginning of block defining an enum type */ 116*98b9484cSchristos #define stIndirect 34 /* Indirect type specification */ 117*98b9484cSchristos /* Pseudo-symbols - internal to debugger */ 118*98b9484cSchristos #define stStr 60 /* string */ 119*98b9484cSchristos #define stNumber 61 /* pure number (ie. 4 NOR 2+2) */ 120*98b9484cSchristos #define stExpr 62 /* 2+2 vs. 4 */ 121*98b9484cSchristos #define stType 63 /* post-coersion SER */ 122*98b9484cSchristos #define stMax 64 123*98b9484cSchristos 124*98b9484cSchristos /* definitions for fields in TIR */ 125*98b9484cSchristos 126*98b9484cSchristos /* type qualifiers for ti.tq0 -> ti.(itqMax-1) */ 127*98b9484cSchristos #define tqNil 0 /* bt is what you see */ 128*98b9484cSchristos #define tqPtr 1 /* pointer */ 129*98b9484cSchristos #define tqProc 2 /* procedure */ 130*98b9484cSchristos #define tqArray 3 /* duh */ 131*98b9484cSchristos #define tqFar 4 /* longer addressing - 8086/8 land */ 132*98b9484cSchristos #define tqVol 5 /* volatile */ 133*98b9484cSchristos #define tqConst 6 /* const */ 134*98b9484cSchristos #define tqMax 8 135*98b9484cSchristos 136*98b9484cSchristos /* basic types as seen in ti.bt */ 137*98b9484cSchristos #define btNil 0 /* undefined (also, enum members) */ 138*98b9484cSchristos #define btAdr 1 /* address - integer same size as pointer */ 139*98b9484cSchristos #define btChar 2 /* character */ 140*98b9484cSchristos #define btUChar 3 /* unsigned character */ 141*98b9484cSchristos #define btShort 4 /* short */ 142*98b9484cSchristos #define btUShort 5 /* unsigned short */ 143*98b9484cSchristos #define btInt 6 /* int */ 144*98b9484cSchristos #define btUInt 7 /* unsigned int */ 145*98b9484cSchristos #define btLong 8 /* long */ 146*98b9484cSchristos #define btULong 9 /* unsigned long */ 147*98b9484cSchristos #define btFloat 10 /* float (real) */ 148*98b9484cSchristos #define btDouble 11 /* Double (real) */ 149*98b9484cSchristos #define btStruct 12 /* Structure (Record) */ 150*98b9484cSchristos #define btUnion 13 /* Union (variant) */ 151*98b9484cSchristos #define btEnum 14 /* Enumerated */ 152*98b9484cSchristos #define btTypedef 15 /* defined via a typedef, isymRef points */ 153*98b9484cSchristos #define btRange 16 /* subrange of int */ 154*98b9484cSchristos #define btSet 17 /* pascal sets */ 155*98b9484cSchristos #define btComplex 18 /* fortran complex */ 156*98b9484cSchristos #define btDComplex 19 /* fortran double complex */ 157*98b9484cSchristos #define btIndirect 20 /* forward or unnamed typedef */ 158*98b9484cSchristos #define btFixedDec 21 /* Fixed Decimal */ 159*98b9484cSchristos #define btFloatDec 22 /* Float Decimal */ 160*98b9484cSchristos #define btString 23 /* Varying Length Character String */ 161*98b9484cSchristos #define btBit 24 /* Aligned Bit String */ 162*98b9484cSchristos #define btPicture 25 /* Picture */ 163*98b9484cSchristos #define btVoid 26 /* void */ 164*98b9484cSchristos #define btLongLong 27 /* long long */ 165*98b9484cSchristos #define btULongLong 28 /* unsigned long long */ 166*98b9484cSchristos #define btLong64 30 /* long (64-bit) */ 167*98b9484cSchristos #define btULong64 31 /* unsigned long (64-bit) */ 168*98b9484cSchristos #define btLongLong64 32 /* long long (64-bit) */ 169*98b9484cSchristos #define btULongLong64 33 /* unsigned long long (64-bit) */ 170*98b9484cSchristos #define btAdr64 34 /* address (64-bit) */ 171*98b9484cSchristos #define btInt64 35 /* int (64-bit) */ 172*98b9484cSchristos #define btUInt64 36 /* unsigned int (64-bit) */ 173*98b9484cSchristos #define btMax 64 174*98b9484cSchristos 175*98b9484cSchristos #if (_MFG == _MIPS) 176*98b9484cSchristos /* optimization type codes */ 177*98b9484cSchristos #define otNil 0 178*98b9484cSchristos #define otReg 1 /* move var to reg */ 179*98b9484cSchristos #define otBlock 2 /* begin basic block */ 180*98b9484cSchristos #define otProc 3 /* procedure */ 181*98b9484cSchristos #define otInline 4 /* inline procedure */ 182*98b9484cSchristos #define otEnd 5 /* whatever you started */ 183*98b9484cSchristos #define otMax 6 /* KEEP UP TO DATE */ 184*98b9484cSchristos #endif /* (_MFG == _MIPS) */ 185