gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
coff_symconst.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003, 2005-2006 The Regents of The University of Michigan
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met: redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * Authors: Steve Reinhardt
29  */
30 
31 /*
32  * Taken from binutils-2.14.90.0.5 include/coff/symconst.h
33  */
34 
35 /* Declarations of constants for internal format of MIPS ECOFF symbols.
36  Originally contributed by MIPS Computer Systems and Third Eye Software.
37  Changes contributed by Cygnus Support are in the public domain.
38 
39  This file is just aggregated with the files that make up the GNU
40  release; it is not considered part of GAS, GDB, or other GNU
41  programs. */
42 
43 /*
44  * |-----------------------------------------------------------|
45  * | Copyright (c) 1992, 1991, 1990 MIPS Computer Systems, Inc.|
46  * | MIPS Computer Systems, Inc. grants reproduction and use |
47  * | rights to all parties, PROVIDED that this comment is |
48  * | maintained in the copy. |
49  * |-----------------------------------------------------------|
50  */
51 
52 /* (C) Copyright 1984 by Third Eye Software, Inc.
53  *
54  * Third Eye Software, Inc. grants reproduction and use rights to
55  * all parties, PROVIDED that this comment is maintained in the copy.
56  *
57  * Third Eye makes no claims about the applicability of this
58  * symbol table to a particular use.
59  */
60 
61 /* glevels for field in FDR */
62 #define GLEVEL_0 2
63 #define GLEVEL_1 1
64 #define GLEVEL_2 0 /* for upward compat reasons. */
65 #define GLEVEL_3 3
66 
67 /* magic number fo symheader */
68 #define magicSym 0x7009
69 /* The Alpha uses this value instead, for some reason. */
70 #define magicSym2 0x1992
71 
72 /* Language codes */
73 #define langC 0
74 #define langPascal 1
75 #define langFortran 2
76 #define langAssembler 3 /* one Assembley inst might map to many mach */
77 #define langMachine 4
78 #define langNil 5
79 #define langAda 6
80 #define langPl1 7
81 #define langCobol 8
82 #define langStdc 9 /* FIXME: Collides with SGI langCplusplus */
83 #define langCplusplus 9 /* FIXME: Collides with langStdc */
84 #define langCplusplusV2 10 /* SGI addition */
85 #define langMax 11 /* maximun allowed 32 -- 5 bits */
86 
87 /* The following are value definitions for the fields in the SYMR */
88 
89 /*
90  * Storage Classes
91  */
92 
93 #define scNil 0
94 #define scText 1 /* text symbol */
95 #define scData 2 /* initialized data symbol */
96 #define scBss 3 /* un-initialized data symbol */
97 #define scRegister 4 /* value of symbol is register number */
98 #define scAbs 5 /* value of symbol is absolute */
99 #define scUndefined 6 /* who knows? */
100 #define scCdbLocal 7 /* variable's value is IN se->va.?? */
101 #define scBits 8 /* this is a bit field */
102 #define scCdbSystem 9 /* variable's value is IN CDB's address space */
103 #define scDbx 9 /* overlap dbx internal use */
104 #define scRegImage 10 /* register value saved on stack */
105 #define scInfo 11 /* symbol contains debugger information */
106 #define scUserStruct 12 /* address in struct user for current process */
107 #define scSData 13 /* load time only small data */
108 #define scSBss 14 /* load time only small common */
109 #define scRData 15 /* load time only read only data */
110 #define scVar 16 /* Var parameter (fortran,pascal) */
111 #define scCommon 17 /* common variable */
112 #define scSCommon 18 /* small common */
113 #define scVarRegister 19 /* Var parameter in a register */
114 #define scVariant 20 /* Variant record */
115 #define scSUndefined 21 /* small undefined(external) data */
116 #define scInit 22 /* .init section symbol */
117 #define scBasedVar 23 /* Fortran or PL/1 ptr based var */
118 #define scXData 24 /* exception handling data */
119 #define scPData 25 /* Procedure section */
120 #define scFini 26 /* .fini section */
121 #define scRConst 27 /* .rconst section */
122 #define scMax 32
123 
124 
125 /*
126  * Symbol Types
127  */
128 
129 #define stNil 0 /* Nuthin' special */
130 #define stGlobal 1 /* external symbol */
131 #define stStatic 2 /* static */
132 #define stParam 3 /* procedure argument */
133 #define stLocal 4 /* local variable */
134 #define stLabel 5 /* label */
135 #define stProc 6 /* " " Procedure */
136 #define stBlock 7 /* beginnning of block */
137 #define stEnd 8 /* end (of anything) */
138 #define stMember 9 /* member (of anything - struct/union/enum */
139 #define stTypedef 10 /* type definition */
140 #define stFile 11 /* file name */
141 #define stRegReloc 12 /* register relocation */
142 #define stForward 13 /* forwarding address */
143 #define stStaticProc 14 /* load time only static procs */
144 #define stConstant 15 /* const */
145 #define stStaParam 16 /* Fortran static parameters */
146  /* These new symbol types have been recently added to SGI machines. */
147 #define stStruct 26 /* Beginning of block defining a struct type */
148 #define stUnion 27 /* Beginning of block defining a union type */
149 #define stEnum 28 /* Beginning of block defining an enum type */
150 #define stIndirect 34 /* Indirect type specification */
151  /* Pseudo-symbols - internal to debugger */
152 #define stStr 60 /* string */
153 #define stNumber 61 /* pure number (ie. 4 NOR 2+2) */
154 #define stExpr 62 /* 2+2 vs. 4 */
155 #define stType 63 /* post-coersion SER */
156 #define stMax 64
157 
158 /* definitions for fields in TIR */
159 
160 /* type qualifiers for ti.tq0 -> ti.(itqMax-1) */
161 #define tqNil 0 /* bt is what you see */
162 #define tqPtr 1 /* pointer */
163 #define tqProc 2 /* procedure */
164 #define tqArray 3 /* duh */
165 #define tqFar 4 /* longer addressing - 8086/8 land */
166 #define tqVol 5 /* volatile */
167 #define tqConst 6 /* const */
168 #define tqMax 8
169 
170 /* basic types as seen in ti.bt */
171 #define btNil 0 /* undefined (also, enum members) */
172 #define btAdr 1 /* address - integer same size as pointer */
173 #define btChar 2 /* character */
174 #define btUChar 3 /* unsigned character */
175 #define btShort 4 /* short */
176 #define btUShort 5 /* unsigned short */
177 #define btInt 6 /* int */
178 #define btUInt 7 /* unsigned int */
179 #define btLong 8 /* long */
180 #define btULong 9 /* unsigned long */
181 #define btFloat 10 /* float (real) */
182 #define btDouble 11 /* Double (real) */
183 #define btStruct 12 /* Structure (Record) */
184 #define btUnion 13 /* Union (variant) */
185 #define btEnum 14 /* Enumerated */
186 #define btTypedef 15 /* defined via a typedef, isymRef points */
187 #define btRange 16 /* subrange of int */
188 #define btSet 17 /* pascal sets */
189 #define btComplex 18 /* fortran complex */
190 #define btDComplex 19 /* fortran double complex */
191 #define btIndirect 20 /* forward or unnamed typedef */
192 #define btFixedDec 21 /* Fixed Decimal */
193 #define btFloatDec 22 /* Float Decimal */
194 #define btString 23 /* Varying Length Character String */
195 #define btBit 24 /* Aligned Bit String */
196 #define btPicture 25 /* Picture */
197 #define btVoid 26 /* void */
198 #define btLongLong 27 /* long long */
199 #define btULongLong 28 /* unsigned long long */
200 #define btMax 64

Generated on Fri Jun 9 2017 13:03:40 for gem5 by doxygen 1.8.6