Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5199 | serge | 1 | /* A Bison parser, made by GNU Bison 2.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 | 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 2, or (at your option) |
||
11 | 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, |
||
21 | Boston, MA 02110-1301, USA. */ |
||
22 | |||
23 | /* As a special exception, you may create a larger work that contains |
||
24 | part or all of the Bison parser skeleton and distribute that work |
||
25 | under terms of your choice, so long as that work isn't itself a |
||
26 | parser generator using the skeleton or a modified version thereof |
||
27 | as a parser skeleton. Alternatively, if you modify or redistribute |
||
28 | the parser skeleton itself, you may (at your option) remove this |
||
29 | special exception, which will cause the skeleton and the resulting |
||
30 | Bison output files to be licensed under the GNU General Public |
||
31 | License without this special exception. |
||
32 | |||
33 | This special exception was added by the Free Software Foundation in |
||
34 | version 2.2 of Bison. */ |
||
35 | |||
36 | /* Tokens. */ |
||
37 | #ifndef YYTOKENTYPE |
||
38 | # define YYTOKENTYPE |
||
39 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
||
40 | know about them. */ |
||
41 | enum yytokentype { |
||
42 | INT = 258, |
||
43 | NAME = 259, |
||
44 | LNAME = 260, |
||
45 | OREQ = 261, |
||
46 | ANDEQ = 262, |
||
47 | RSHIFTEQ = 263, |
||
48 | LSHIFTEQ = 264, |
||
49 | DIVEQ = 265, |
||
50 | MULTEQ = 266, |
||
51 | MINUSEQ = 267, |
||
52 | PLUSEQ = 268, |
||
53 | OROR = 269, |
||
54 | ANDAND = 270, |
||
55 | NE = 271, |
||
56 | EQ = 272, |
||
57 | GE = 273, |
||
58 | LE = 274, |
||
59 | RSHIFT = 275, |
||
60 | LSHIFT = 276, |
||
61 | UNARY = 277, |
||
62 | END = 278, |
||
63 | ALIGN_K = 279, |
||
64 | BLOCK = 280, |
||
65 | BIND = 281, |
||
66 | QUAD = 282, |
||
67 | SQUAD = 283, |
||
68 | LONG = 284, |
||
69 | SHORT = 285, |
||
70 | BYTE = 286, |
||
71 | SECTIONS = 287, |
||
72 | PHDRS = 288, |
||
73 | INSERT_K = 289, |
||
74 | AFTER = 290, |
||
75 | BEFORE = 291, |
||
76 | DATA_SEGMENT_ALIGN = 292, |
||
77 | DATA_SEGMENT_RELRO_END = 293, |
||
78 | DATA_SEGMENT_END = 294, |
||
79 | SORT_BY_NAME = 295, |
||
80 | SORT_BY_ALIGNMENT = 296, |
||
81 | SORT_NONE = 297, |
||
82 | SORT_BY_INIT_PRIORITY = 298, |
||
83 | SIZEOF_HEADERS = 299, |
||
84 | OUTPUT_FORMAT = 300, |
||
85 | FORCE_COMMON_ALLOCATION = 301, |
||
86 | OUTPUT_ARCH = 302, |
||
87 | INHIBIT_COMMON_ALLOCATION = 303, |
||
88 | SEGMENT_START = 304, |
||
89 | INCLUDE = 305, |
||
90 | MEMORY = 306, |
||
91 | REGION_ALIAS = 307, |
||
92 | LD_FEATURE = 308, |
||
93 | NOLOAD = 309, |
||
94 | DSECT = 310, |
||
95 | COPY = 311, |
||
96 | INFO = 312, |
||
97 | OVERLAY = 313, |
||
98 | DEFINED = 314, |
||
99 | TARGET_K = 315, |
||
100 | SEARCH_DIR = 316, |
||
101 | MAP = 317, |
||
102 | ENTRY = 318, |
||
103 | NEXT = 319, |
||
104 | SIZEOF = 320, |
||
105 | ALIGNOF = 321, |
||
106 | ADDR = 322, |
||
107 | LOADADDR = 323, |
||
108 | MAX_K = 324, |
||
109 | MIN_K = 325, |
||
110 | STARTUP = 326, |
||
111 | HLL = 327, |
||
112 | SYSLIB = 328, |
||
113 | FLOAT = 329, |
||
114 | NOFLOAT = 330, |
||
115 | NOCROSSREFS = 331, |
||
116 | ORIGIN = 332, |
||
117 | FILL = 333, |
||
118 | LENGTH = 334, |
||
119 | CREATE_OBJECT_SYMBOLS = 335, |
||
120 | INPUT = 336, |
||
121 | GROUP = 337, |
||
122 | OUTPUT = 338, |
||
123 | CONSTRUCTORS = 339, |
||
124 | ALIGNMOD = 340, |
||
125 | AT = 341, |
||
126 | SUBALIGN = 342, |
||
127 | HIDDEN = 343, |
||
128 | PROVIDE = 344, |
||
129 | PROVIDE_HIDDEN = 345, |
||
130 | AS_NEEDED = 346, |
||
131 | CHIP = 347, |
||
132 | LIST = 348, |
||
133 | SECT = 349, |
||
134 | ABSOLUTE = 350, |
||
135 | LOAD = 351, |
||
136 | NEWLINE = 352, |
||
137 | ENDWORD = 353, |
||
138 | ORDER = 354, |
||
139 | NAMEWORD = 355, |
||
140 | ASSERT_K = 356, |
||
141 | LOG2CEIL = 357, |
||
142 | FORMAT = 358, |
||
143 | PUBLIC = 359, |
||
144 | DEFSYMEND = 360, |
||
145 | BASE = 361, |
||
146 | ALIAS = 362, |
||
147 | TRUNCATE = 363, |
||
148 | REL = 364, |
||
149 | INPUT_SCRIPT = 365, |
||
150 | INPUT_MRI_SCRIPT = 366, |
||
151 | INPUT_DEFSYM = 367, |
||
152 | CASE = 368, |
||
153 | EXTERN = 369, |
||
154 | START = 370, |
||
155 | VERS_TAG = 371, |
||
156 | VERS_IDENTIFIER = 372, |
||
157 | GLOBAL = 373, |
||
158 | LOCAL = 374, |
||
159 | VERSIONK = 375, |
||
160 | INPUT_VERSION_SCRIPT = 376, |
||
161 | KEEP = 377, |
||
162 | ONLY_IF_RO = 378, |
||
163 | ONLY_IF_RW = 379, |
||
164 | SPECIAL = 380, |
||
165 | INPUT_SECTION_FLAGS = 381, |
||
166 | ALIGN_WITH_INPUT = 382, |
||
167 | EXCLUDE_FILE = 383, |
||
168 | CONSTANT = 384, |
||
169 | INPUT_DYNAMIC_LIST = 385 |
||
170 | }; |
||
171 | #endif |
||
172 | /* Tokens. */ |
||
173 | #define INT 258 |
||
174 | #define NAME 259 |
||
175 | #define LNAME 260 |
||
176 | #define OREQ 261 |
||
177 | #define ANDEQ 262 |
||
178 | #define RSHIFTEQ 263 |
||
179 | #define LSHIFTEQ 264 |
||
180 | #define DIVEQ 265 |
||
181 | #define MULTEQ 266 |
||
182 | #define MINUSEQ 267 |
||
183 | #define PLUSEQ 268 |
||
184 | #define OROR 269 |
||
185 | #define ANDAND 270 |
||
186 | #define NE 271 |
||
187 | #define EQ 272 |
||
188 | #define GE 273 |
||
189 | #define LE 274 |
||
190 | #define RSHIFT 275 |
||
191 | #define LSHIFT 276 |
||
192 | #define UNARY 277 |
||
193 | #define END 278 |
||
194 | #define ALIGN_K 279 |
||
195 | #define BLOCK 280 |
||
196 | #define BIND 281 |
||
197 | #define QUAD 282 |
||
198 | #define SQUAD 283 |
||
199 | #define LONG 284 |
||
200 | #define SHORT 285 |
||
201 | #define BYTE 286 |
||
202 | #define SECTIONS 287 |
||
203 | #define PHDRS 288 |
||
204 | #define INSERT_K 289 |
||
205 | #define AFTER 290 |
||
206 | #define BEFORE 291 |
||
207 | #define DATA_SEGMENT_ALIGN 292 |
||
208 | #define DATA_SEGMENT_RELRO_END 293 |
||
209 | #define DATA_SEGMENT_END 294 |
||
210 | #define SORT_BY_NAME 295 |
||
211 | #define SORT_BY_ALIGNMENT 296 |
||
212 | #define SORT_NONE 297 |
||
213 | #define SORT_BY_INIT_PRIORITY 298 |
||
214 | #define SIZEOF_HEADERS 299 |
||
215 | #define OUTPUT_FORMAT 300 |
||
216 | #define FORCE_COMMON_ALLOCATION 301 |
||
217 | #define OUTPUT_ARCH 302 |
||
218 | #define INHIBIT_COMMON_ALLOCATION 303 |
||
219 | #define SEGMENT_START 304 |
||
220 | #define INCLUDE 305 |
||
221 | #define MEMORY 306 |
||
222 | #define REGION_ALIAS 307 |
||
223 | #define LD_FEATURE 308 |
||
224 | #define NOLOAD 309 |
||
225 | #define DSECT 310 |
||
226 | #define COPY 311 |
||
227 | #define INFO 312 |
||
228 | #define OVERLAY 313 |
||
229 | #define DEFINED 314 |
||
230 | #define TARGET_K 315 |
||
231 | #define SEARCH_DIR 316 |
||
232 | #define MAP 317 |
||
233 | #define ENTRY 318 |
||
234 | #define NEXT 319 |
||
235 | #define SIZEOF 320 |
||
236 | #define ALIGNOF 321 |
||
237 | #define ADDR 322 |
||
238 | #define LOADADDR 323 |
||
239 | #define MAX_K 324 |
||
240 | #define MIN_K 325 |
||
241 | #define STARTUP 326 |
||
242 | #define HLL 327 |
||
243 | #define SYSLIB 328 |
||
244 | #define FLOAT 329 |
||
245 | #define NOFLOAT 330 |
||
246 | #define NOCROSSREFS 331 |
||
247 | #define ORIGIN 332 |
||
248 | #define FILL 333 |
||
249 | #define LENGTH 334 |
||
250 | #define CREATE_OBJECT_SYMBOLS 335 |
||
251 | #define INPUT 336 |
||
252 | #define GROUP 337 |
||
253 | #define OUTPUT 338 |
||
254 | #define CONSTRUCTORS 339 |
||
255 | #define ALIGNMOD 340 |
||
256 | #define AT 341 |
||
257 | #define SUBALIGN 342 |
||
258 | #define HIDDEN 343 |
||
259 | #define PROVIDE 344 |
||
260 | #define PROVIDE_HIDDEN 345 |
||
261 | #define AS_NEEDED 346 |
||
262 | #define CHIP 347 |
||
263 | #define LIST 348 |
||
264 | #define SECT 349 |
||
265 | #define ABSOLUTE 350 |
||
266 | #define LOAD 351 |
||
267 | #define NEWLINE 352 |
||
268 | #define ENDWORD 353 |
||
269 | #define ORDER 354 |
||
270 | #define NAMEWORD 355 |
||
271 | #define ASSERT_K 356 |
||
272 | #define LOG2CEIL 357 |
||
273 | #define FORMAT 358 |
||
274 | #define PUBLIC 359 |
||
275 | #define DEFSYMEND 360 |
||
276 | #define BASE 361 |
||
277 | #define ALIAS 362 |
||
278 | #define TRUNCATE 363 |
||
279 | #define REL 364 |
||
280 | #define INPUT_SCRIPT 365 |
||
281 | #define INPUT_MRI_SCRIPT 366 |
||
282 | #define INPUT_DEFSYM 367 |
||
283 | #define CASE 368 |
||
284 | #define EXTERN 369 |
||
285 | #define START 370 |
||
286 | #define VERS_TAG 371 |
||
287 | #define VERS_IDENTIFIER 372 |
||
288 | #define GLOBAL 373 |
||
289 | #define LOCAL 374 |
||
290 | #define VERSIONK 375 |
||
291 | #define INPUT_VERSION_SCRIPT 376 |
||
292 | #define KEEP 377 |
||
293 | #define ONLY_IF_RO 378 |
||
294 | #define ONLY_IF_RW 379 |
||
295 | #define SPECIAL 380 |
||
296 | #define INPUT_SECTION_FLAGS 381 |
||
297 | #define ALIGN_WITH_INPUT 382 |
||
298 | #define EXCLUDE_FILE 383 |
||
299 | #define CONSTANT 384 |
||
300 | #define INPUT_DYNAMIC_LIST 385 |
||
301 | |||
302 | |||
303 | |||
304 | |||
305 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
||
306 | typedef union YYSTYPE |
||
307 | #line 60 "ldgram.y" |
||
308 | { |
||
309 | bfd_vma integer; |
||
310 | struct big_int |
||
311 | { |
||
312 | bfd_vma integer; |
||
313 | char *str; |
||
314 | } bigint; |
||
315 | fill_type *fill; |
||
316 | char *name; |
||
317 | const char *cname; |
||
318 | struct wildcard_spec wildcard; |
||
319 | struct wildcard_list *wildcard_list; |
||
320 | struct name_list *name_list; |
||
321 | struct flag_info_list *flag_info_list; |
||
322 | struct flag_info *flag_info; |
||
323 | int token; |
||
324 | union etree_union *etree; |
||
325 | struct phdr_info |
||
326 | { |
||
327 | bfd_boolean filehdr; |
||
328 | bfd_boolean phdrs; |
||
329 | union etree_union *at; |
||
330 | union etree_union *flags; |
||
331 | } phdr; |
||
332 | struct lang_nocrossref *nocrossref; |
||
333 | struct lang_output_section_phdr_list *section_phdr; |
||
334 | struct bfd_elf_version_deps *deflist; |
||
335 | struct bfd_elf_version_expr *versyms; |
||
336 | struct bfd_elf_version_tree *versnode; |
||
337 | } |
||
338 | /* Line 1529 of yacc.c. */ |
||
339 | #line 340 "ldgram.h" |
||
340 | YYSTYPE; |
||
341 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
||
342 | # define YYSTYPE_IS_DECLARED 1 |
||
343 | # define YYSTYPE_IS_TRIVIAL 1 |
||
344 | #endif |
||
345 | |||
346 | extern YYSTYPE yylval; |
||
347 |