Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / gnu / usr.bin / binutils221 / libgold / yyscript.h
1 /* A Bison parser, made by GNU Bison 2.4.3.  */
2
3 /* Skeleton interface for Bison's Yacc-like parsers in C
4
5       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
6    2009, 2010 Free Software Foundation, Inc.
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, see <http://www.gnu.org/licenses/>.  */
20
21 /* As a special exception, you may create a larger work that contains
22    part or all of the Bison parser skeleton and distribute that work
23    under terms of your choice, so long as that work isn't itself a
24    parser generator using the skeleton or a modified version thereof
25    as a parser skeleton.  Alternatively, if you modify or redistribute
26    the parser skeleton itself, you may (at your option) remove this
27    special exception, which will cause the skeleton and the resulting
28    Bison output files to be licensed under the GNU General Public
29    License without this special exception.
30
31    This special exception was added by the Free Software Foundation in
32    version 2.2 of Bison.  */
33
34
35 /* Tokens.  */
36 #ifndef YYTOKENTYPE
37 # define YYTOKENTYPE
38    /* Put the tokens into the symbol table, so that GDB and other debuggers
39       know about them.  */
40    enum yytokentype {
41      OREQ = 258,
42      ANDEQ = 259,
43      RSHIFTEQ = 260,
44      LSHIFTEQ = 261,
45      DIVEQ = 262,
46      MULTEQ = 263,
47      MINUSEQ = 264,
48      PLUSEQ = 265,
49      OROR = 266,
50      ANDAND = 267,
51      NE = 268,
52      EQ = 269,
53      GE = 270,
54      LE = 271,
55      RSHIFT = 272,
56      LSHIFT = 273,
57      UNARY = 274,
58      STRING = 275,
59      QUOTED_STRING = 276,
60      INTEGER = 277,
61      ABSOLUTE = 278,
62      ADDR = 279,
63      ALIGN_K = 280,
64      ALIGNOF = 281,
65      ASSERT_K = 282,
66      AS_NEEDED = 283,
67      AT = 284,
68      BIND = 285,
69      BLOCK = 286,
70      BYTE = 287,
71      CONSTANT = 288,
72      CONSTRUCTORS = 289,
73      COPY = 290,
74      CREATE_OBJECT_SYMBOLS = 291,
75      DATA_SEGMENT_ALIGN = 292,
76      DATA_SEGMENT_END = 293,
77      DATA_SEGMENT_RELRO_END = 294,
78      DEFINED = 295,
79      DSECT = 296,
80      ENTRY = 297,
81      EXCLUDE_FILE = 298,
82      EXTERN = 299,
83      FILL = 300,
84      FLOAT = 301,
85      FORCE_COMMON_ALLOCATION = 302,
86      GLOBAL = 303,
87      GROUP = 304,
88      HLL = 305,
89      INCLUDE = 306,
90      INHIBIT_COMMON_ALLOCATION = 307,
91      INFO = 308,
92      INPUT = 309,
93      KEEP = 310,
94      LEN = 311,
95      LENGTH = 312,
96      LOADADDR = 313,
97      LOCAL = 314,
98      LONG = 315,
99      MAP = 316,
100      MAX_K = 317,
101      MEMORY = 318,
102      MIN_K = 319,
103      NEXT = 320,
104      NOCROSSREFS = 321,
105      NOFLOAT = 322,
106      NOLOAD = 323,
107      ONLY_IF_RO = 324,
108      ONLY_IF_RW = 325,
109      ORG = 326,
110      ORIGIN = 327,
111      OUTPUT = 328,
112      OUTPUT_ARCH = 329,
113      OUTPUT_FORMAT = 330,
114      OVERLAY = 331,
115      PHDRS = 332,
116      PROVIDE = 333,
117      PROVIDE_HIDDEN = 334,
118      QUAD = 335,
119      SEARCH_DIR = 336,
120      SECTIONS = 337,
121      SEGMENT_START = 338,
122      SHORT = 339,
123      SIZEOF = 340,
124      SIZEOF_HEADERS = 341,
125      SORT_BY_ALIGNMENT = 342,
126      SORT_BY_NAME = 343,
127      SPECIAL = 344,
128      SQUAD = 345,
129      STARTUP = 346,
130      SUBALIGN = 347,
131      SYSLIB = 348,
132      TARGET_K = 349,
133      TRUNCATE = 350,
134      VERSIONK = 351,
135      OPTION = 352,
136      PARSING_LINKER_SCRIPT = 353,
137      PARSING_VERSION_SCRIPT = 354,
138      PARSING_DEFSYM = 355,
139      PARSING_DYNAMIC_LIST = 356
140    };
141 #endif
142 /* Tokens.  */
143 #define OREQ 258
144 #define ANDEQ 259
145 #define RSHIFTEQ 260
146 #define LSHIFTEQ 261
147 #define DIVEQ 262
148 #define MULTEQ 263
149 #define MINUSEQ 264
150 #define PLUSEQ 265
151 #define OROR 266
152 #define ANDAND 267
153 #define NE 268
154 #define EQ 269
155 #define GE 270
156 #define LE 271
157 #define RSHIFT 272
158 #define LSHIFT 273
159 #define UNARY 274
160 #define STRING 275
161 #define QUOTED_STRING 276
162 #define INTEGER 277
163 #define ABSOLUTE 278
164 #define ADDR 279
165 #define ALIGN_K 280
166 #define ALIGNOF 281
167 #define ASSERT_K 282
168 #define AS_NEEDED 283
169 #define AT 284
170 #define BIND 285
171 #define BLOCK 286
172 #define BYTE 287
173 #define CONSTANT 288
174 #define CONSTRUCTORS 289
175 #define COPY 290
176 #define CREATE_OBJECT_SYMBOLS 291
177 #define DATA_SEGMENT_ALIGN 292
178 #define DATA_SEGMENT_END 293
179 #define DATA_SEGMENT_RELRO_END 294
180 #define DEFINED 295
181 #define DSECT 296
182 #define ENTRY 297
183 #define EXCLUDE_FILE 298
184 #define EXTERN 299
185 #define FILL 300
186 #define FLOAT 301
187 #define FORCE_COMMON_ALLOCATION 302
188 #define GLOBAL 303
189 #define GROUP 304
190 #define HLL 305
191 #define INCLUDE 306
192 #define INHIBIT_COMMON_ALLOCATION 307
193 #define INFO 308
194 #define INPUT 309
195 #define KEEP 310
196 #define LEN 311
197 #define LENGTH 312
198 #define LOADADDR 313
199 #define LOCAL 314
200 #define LONG 315
201 #define MAP 316
202 #define MAX_K 317
203 #define MEMORY 318
204 #define MIN_K 319
205 #define NEXT 320
206 #define NOCROSSREFS 321
207 #define NOFLOAT 322
208 #define NOLOAD 323
209 #define ONLY_IF_RO 324
210 #define ONLY_IF_RW 325
211 #define ORG 326
212 #define ORIGIN 327
213 #define OUTPUT 328
214 #define OUTPUT_ARCH 329
215 #define OUTPUT_FORMAT 330
216 #define OVERLAY 331
217 #define PHDRS 332
218 #define PROVIDE 333
219 #define PROVIDE_HIDDEN 334
220 #define QUAD 335
221 #define SEARCH_DIR 336
222 #define SECTIONS 337
223 #define SEGMENT_START 338
224 #define SHORT 339
225 #define SIZEOF 340
226 #define SIZEOF_HEADERS 341
227 #define SORT_BY_ALIGNMENT 342
228 #define SORT_BY_NAME 343
229 #define SPECIAL 344
230 #define SQUAD 345
231 #define STARTUP 346
232 #define SUBALIGN 347
233 #define SYSLIB 348
234 #define TARGET_K 349
235 #define TRUNCATE 350
236 #define VERSIONK 351
237 #define OPTION 352
238 #define PARSING_LINKER_SCRIPT 353
239 #define PARSING_VERSION_SCRIPT 354
240 #define PARSING_DEFSYM 355
241 #define PARSING_DYNAMIC_LIST 356
242
243
244
245
246 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
247 typedef union YYSTYPE
248 {
249
250 /* Line 1685 of yacc.c  */
251 #line 53 "yyscript.y"
252
253   /* A string.  */
254   struct Parser_string string;
255   /* A number.  */
256   uint64_t integer;
257   /* An expression.  */
258   Expression_ptr expr;
259   /* An output section header.  */
260   struct Parser_output_section_header output_section_header;
261   /* An output section trailer.  */
262   struct Parser_output_section_trailer output_section_trailer;
263   /* A section constraint.  */
264   enum Section_constraint constraint;
265   /* A complete input section specification.  */
266   struct Input_section_spec input_section_spec;
267   /* A list of wildcard specifications, with exclusions.  */
268   struct Wildcard_sections wildcard_sections;
269   /* A single wildcard specification.  */
270   struct Wildcard_section wildcard_section;
271   /* A list of strings.  */
272   String_list_ptr string_list;
273   /* Information for a program header.  */
274   struct Phdr_info phdr_info;
275   /* Used for version scripts and within VERSION {}.  */
276   struct Version_dependency_list* deplist;
277   struct Version_expression_list* versyms;
278   struct Version_tree* versnode;
279   enum Script_section_type section_type;
280
281
282
283 /* Line 1685 of yacc.c  */
284 #line 285 "yyscript.h"
285 } YYSTYPE;
286 # define YYSTYPE_IS_TRIVIAL 1
287 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
288 # define YYSTYPE_IS_DECLARED 1
289 #endif