1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37: #ifndef YYTOKENTYPE
38: # define YYTOKENTYPE
39:
40:
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: DATA_SEGMENT_ALIGN = 289,
74: DATA_SEGMENT_RELRO_END = 290,
75: DATA_SEGMENT_END = 291,
76: SORT_BY_NAME = 292,
77: SORT_BY_ALIGNMENT = 293,
78: SIZEOF_HEADERS = 294,
79: OUTPUT_FORMAT = 295,
80: FORCE_COMMON_ALLOCATION = 296,
81: OUTPUT_ARCH = 297,
82: INHIBIT_COMMON_ALLOCATION = 298,
83: SEGMENT_START = 299,
84: INCLUDE = 300,
85: MEMORY = 301,
86: NOLOAD = 302,
87: DSECT = 303,
88: COPY = 304,
89: INFO = 305,
90: OVERLAY = 306,
91: DEFINED = 307,
92: TARGET_K = 308,
93: SEARCH_DIR = 309,
94: MAP = 310,
95: ENTRY = 311,
96: NEXT = 312,
97: SIZEOF = 313,
98: ALIGNOF = 314,
99: ADDR = 315,
100: LOADADDR = 316,
101: MAX_K = 317,
102: MIN_K = 318,
103: STARTUP = 319,
104: HLL = 320,
105: SYSLIB = 321,
106: FLOAT = 322,
107: NOFLOAT = 323,
108: NOCROSSREFS = 324,
109: ORIGIN = 325,
110: FILL = 326,
111: LENGTH = 327,
112: CREATE_OBJECT_SYMBOLS = 328,
113: INPUT = 329,
114: GROUP = 330,
115: OUTPUT = 331,
116: CONSTRUCTORS = 332,
117: ALIGNMOD = 333,
118: AT = 334,
119: SUBALIGN = 335,
120: PROVIDE = 336,
121: PROVIDE_HIDDEN = 337,
122: AS_NEEDED = 338,
123: CHIP = 339,
124: LIST = 340,
125: SECT = 341,
126: ABSOLUTE = 342,
127: LOAD = 343,
128: NEWLINE = 344,
129: ENDWORD = 345,
130: ORDER = 346,
131: NAMEWORD = 347,
132: ASSERT_K = 348,
133: FORMAT = 349,
134: PUBLIC = 350,
135: DEFSYMEND = 351,
136: BASE = 352,
137: ALIAS = 353,
138: TRUNCATE = 354,
139: REL = 355,
140: INPUT_SCRIPT = 356,
141: INPUT_MRI_SCRIPT = 357,
142: INPUT_DEFSYM = 358,
143: CASE = 359,
144: EXTERN = 360,
145: START = 361,
146: VERS_TAG = 362,
147: VERS_IDENTIFIER = 363,
148: GLOBAL = 364,
149: LOCAL = 365,
150: VERSIONK = 366,
151: INPUT_VERSION_SCRIPT = 367,
152: KEEP = 368,
153: ONLY_IF_RO = 369,
154: ONLY_IF_RW = 370,
155: SPECIAL = 371,
156: EXCLUDE_FILE = 372,
157: CONSTANT = 373,
158: INPUT_DYNAMIC_LIST = 374
159: };
160: #endif
161:
162: #define INT 258
163: #define NAME 259
164: #define LNAME 260
165: #define OREQ 261
166: #define ANDEQ 262
167: #define RSHIFTEQ 263
168: #define LSHIFTEQ 264
169: #define DIVEQ 265
170: #define MULTEQ 266
171: #define MINUSEQ 267
172: #define PLUSEQ 268
173: #define OROR 269
174: #define ANDAND 270
175: #define NE 271
176: #define EQ 272
177: #define GE 273
178: #define LE 274
179: #define RSHIFT 275
180: #define LSHIFT 276
181: #define UNARY 277
182: #define END 278
183: #define ALIGN_K 279
184: #define BLOCK 280
185: #define BIND 281
186: #define QUAD 282
187: #define SQUAD 283
188: #define LONG 284
189: #define SHORT 285
190: #define BYTE 286
191: #define SECTIONS 287
192: #define PHDRS 288
193: #define DATA_SEGMENT_ALIGN 289
194: #define DATA_SEGMENT_RELRO_END 290
195: #define DATA_SEGMENT_END 291
196: #define SORT_BY_NAME 292
197: #define SORT_BY_ALIGNMENT 293
198: #define SIZEOF_HEADERS 294
199: #define OUTPUT_FORMAT 295
200: #define FORCE_COMMON_ALLOCATION 296
201: #define OUTPUT_ARCH 297
202: #define INHIBIT_COMMON_ALLOCATION 298
203: #define SEGMENT_START 299
204: #define INCLUDE 300
205: #define MEMORY 301
206: #define NOLOAD 302
207: #define DSECT 303
208: #define COPY 304
209: #define INFO 305
210: #define OVERLAY 306
211: #define DEFINED 307
212: #define TARGET_K 308
213: #define SEARCH_DIR 309
214: #define MAP 310
215: #define ENTRY 311
216: #define NEXT 312
217: #define SIZEOF 313
218: #define ALIGNOF 314
219: #define ADDR 315
220: #define LOADADDR 316
221: #define MAX_K 317
222: #define MIN_K 318
223: #define STARTUP 319
224: #define HLL 320
225: #define SYSLIB 321
226: #define FLOAT 322
227: #define NOFLOAT 323
228: #define NOCROSSREFS 324
229: #define ORIGIN 325
230: #define FILL 326
231: #define LENGTH 327
232: #define CREATE_OBJECT_SYMBOLS 328
233: #define INPUT 329
234: #define GROUP 330
235: #define OUTPUT 331
236: #define CONSTRUCTORS 332
237: #define ALIGNMOD 333
238: #define AT 334
239: #define SUBALIGN 335
240: #define PROVIDE 336
241: #define PROVIDE_HIDDEN 337
242: #define AS_NEEDED 338
243: #define CHIP 339
244: #define LIST 340
245: #define SECT 341
246: #define ABSOLUTE 342
247: #define LOAD 343
248: #define NEWLINE 344
249: #define ENDWORD 345
250: #define ORDER 346
251: #define NAMEWORD 347
252: #define ASSERT_K 348
253: #define FORMAT 349
254: #define PUBLIC 350
255: #define DEFSYMEND 351
256: #define BASE 352
257: #define ALIAS 353
258: #define TRUNCATE 354
259: #define REL 355
260: #define INPUT_SCRIPT 356
261: #define INPUT_MRI_SCRIPT 357
262: #define INPUT_DEFSYM 358
263: #define CASE 359
264: #define EXTERN 360
265: #define START 361
266: #define VERS_TAG 362
267: #define VERS_IDENTIFIER 363
268: #define GLOBAL 364
269: #define LOCAL 365
270: #define VERSIONK 366
271: #define INPUT_VERSION_SCRIPT 367
272: #define KEEP 368
273: #define ONLY_IF_RO 369
274: #define ONLY_IF_RW 370
275: #define SPECIAL 371
276: #define EXCLUDE_FILE 372
277: #define CONSTANT 373
278: #define INPUT_DYNAMIC_LIST 374
279:
280:
281:
282:
283: #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
284: typedef union YYSTYPE
285: #line 66 "ldgram.y"
286: {
287: bfd_vma integer;
288: struct big_int
289: {
290: bfd_vma integer;
291: char *str;
292: } bigint;
293: fill_type *fill;
294: char *name;
295: const char *cname;
296: struct wildcard_spec wildcard;
297: struct wildcard_list *wildcard_list;
298: struct name_list *name_list;
299: int token;
300: union etree_union *etree;
301: struct phdr_info
302: {
303: bfd_boolean filehdr;
304: bfd_boolean phdrs;
305: union etree_union *at;
306: union etree_union *flags;
307: } phdr;
308: struct lang_nocrossref *nocrossref;
309: struct lang_output_section_phdr_list *section_phdr;
310: struct bfd_elf_version_deps *deflist;
311: struct bfd_elf_version_expr *versyms;
312: struct bfd_elf_version_tree *versnode;
313: }
314:
315: #line 316 "ldgram.h"
316: YYSTYPE;
317: # define yystype YYSTYPE
318: # define YYSTYPE_IS_DECLARED 1
319: # define YYSTYPE_IS_TRIVIAL 1
320: #endif
321:
322: extern YYSTYPE yylval;
323: