| /* A Bison parser, made by GNU Bison 2.1. */ |
| |
| /* Skeleton parser for Yacc-like parsing with Bison, |
| Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2, or (at your option) |
| any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| Boston, MA 02110-1301, USA. */ |
| |
| /* As a special exception, when this file is copied by Bison into a |
| Bison output file, you may use that output file without restriction. |
| This special exception was added by the Free Software Foundation |
| in version 1.24 of Bison. */ |
| |
| /* Tokens. */ |
| #ifndef YYTOKENTYPE |
| # define YYTOKENTYPE |
| /* Put the tokens into the symbol table, so that GDB and other debuggers |
| know about them. */ |
| enum yytokentype { |
| INT = 258, |
| NAME = 259, |
| LNAME = 260, |
| OREQ = 261, |
| ANDEQ = 262, |
| RSHIFTEQ = 263, |
| LSHIFTEQ = 264, |
| DIVEQ = 265, |
| MULTEQ = 266, |
| MINUSEQ = 267, |
| PLUSEQ = 268, |
| OROR = 269, |
| ANDAND = 270, |
| NE = 271, |
| EQ = 272, |
| GE = 273, |
| LE = 274, |
| RSHIFT = 275, |
| LSHIFT = 276, |
| UNARY = 277, |
| END = 278, |
| ALIGN_K = 279, |
| BLOCK = 280, |
| BIND = 281, |
| QUAD = 282, |
| SQUAD = 283, |
| LONG = 284, |
| SHORT = 285, |
| BYTE = 286, |
| SECTIONS = 287, |
| PHDRS = 288, |
| DATA_SEGMENT_ALIGN = 289, |
| DATA_SEGMENT_RELRO_END = 290, |
| DATA_SEGMENT_END = 291, |
| SORT_BY_NAME = 292, |
| SORT_BY_ALIGNMENT = 293, |
| SIZEOF_HEADERS = 294, |
| OUTPUT_FORMAT = 295, |
| FORCE_COMMON_ALLOCATION = 296, |
| OUTPUT_ARCH = 297, |
| INHIBIT_COMMON_ALLOCATION = 298, |
| SEGMENT_START = 299, |
| INCLUDE = 300, |
| MEMORY = 301, |
| DEFSYMEND = 302, |
| NOLOAD = 303, |
| DSECT = 304, |
| COPY = 305, |
| INFO = 306, |
| OVERLAY = 307, |
| DEFINED = 308, |
| TARGET_K = 309, |
| SEARCH_DIR = 310, |
| MAP = 311, |
| ENTRY = 312, |
| NEXT = 313, |
| SIZEOF = 314, |
| ADDR = 315, |
| LOADADDR = 316, |
| MAX_K = 317, |
| MIN_K = 318, |
| STARTUP = 319, |
| HLL = 320, |
| SYSLIB = 321, |
| FLOAT = 322, |
| NOFLOAT = 323, |
| NOCROSSREFS = 324, |
| ORIGIN = 325, |
| FILL = 326, |
| LENGTH = 327, |
| CREATE_OBJECT_SYMBOLS = 328, |
| INPUT = 329, |
| GROUP = 330, |
| OUTPUT = 331, |
| CONSTRUCTORS = 332, |
| ALIGNMOD = 333, |
| AT = 334, |
| SUBALIGN = 335, |
| PROVIDE = 336, |
| PROVIDE_HIDDEN = 337, |
| AS_NEEDED = 338, |
| CHIP = 339, |
| LIST = 340, |
| SECT = 341, |
| ABSOLUTE = 342, |
| LOAD = 343, |
| NEWLINE = 344, |
| ENDWORD = 345, |
| ORDER = 346, |
| NAMEWORD = 347, |
| ASSERT_K = 348, |
| FORMAT = 349, |
| PUBLIC = 350, |
| BASE = 351, |
| ALIAS = 352, |
| TRUNCATE = 353, |
| REL = 354, |
| INPUT_SCRIPT = 355, |
| INPUT_MRI_SCRIPT = 356, |
| INPUT_DEFSYM = 357, |
| CASE = 358, |
| EXTERN = 359, |
| START = 360, |
| VERS_TAG = 361, |
| VERS_IDENTIFIER = 362, |
| GLOBAL = 363, |
| LOCAL = 364, |
| VERSIONK = 365, |
| INPUT_VERSION_SCRIPT = 366, |
| KEEP = 367, |
| ONLY_IF_RO = 368, |
| ONLY_IF_RW = 369, |
| SPECIAL = 370, |
| EXCLUDE_FILE = 371 |
| }; |
| #endif |
| /* Tokens. */ |
| #define INT 258 |
| #define NAME 259 |
| #define LNAME 260 |
| #define OREQ 261 |
| #define ANDEQ 262 |
| #define RSHIFTEQ 263 |
| #define LSHIFTEQ 264 |
| #define DIVEQ 265 |
| #define MULTEQ 266 |
| #define MINUSEQ 267 |
| #define PLUSEQ 268 |
| #define OROR 269 |
| #define ANDAND 270 |
| #define NE 271 |
| #define EQ 272 |
| #define GE 273 |
| #define LE 274 |
| #define RSHIFT 275 |
| #define LSHIFT 276 |
| #define UNARY 277 |
| #define END 278 |
| #define ALIGN_K 279 |
| #define BLOCK 280 |
| #define BIND 281 |
| #define QUAD 282 |
| #define SQUAD 283 |
| #define LONG 284 |
| #define SHORT 285 |
| #define BYTE 286 |
| #define SECTIONS 287 |
| #define PHDRS 288 |
| #define DATA_SEGMENT_ALIGN 289 |
| #define DATA_SEGMENT_RELRO_END 290 |
| #define DATA_SEGMENT_END 291 |
| #define SORT_BY_NAME 292 |
| #define SORT_BY_ALIGNMENT 293 |
| #define SIZEOF_HEADERS 294 |
| #define OUTPUT_FORMAT 295 |
| #define FORCE_COMMON_ALLOCATION 296 |
| #define OUTPUT_ARCH 297 |
| #define INHIBIT_COMMON_ALLOCATION 298 |
| #define SEGMENT_START 299 |
| #define INCLUDE 300 |
| #define MEMORY 301 |
| #define DEFSYMEND 302 |
| #define NOLOAD 303 |
| #define DSECT 304 |
| #define COPY 305 |
| #define INFO 306 |
| #define OVERLAY 307 |
| #define DEFINED 308 |
| #define TARGET_K 309 |
| #define SEARCH_DIR 310 |
| #define MAP 311 |
| #define ENTRY 312 |
| #define NEXT 313 |
| #define SIZEOF 314 |
| #define ADDR 315 |
| #define LOADADDR 316 |
| #define MAX_K 317 |
| #define MIN_K 318 |
| #define STARTUP 319 |
| #define HLL 320 |
| #define SYSLIB 321 |
| #define FLOAT 322 |
| #define NOFLOAT 323 |
| #define NOCROSSREFS 324 |
| #define ORIGIN 325 |
| #define FILL 326 |
| #define LENGTH 327 |
| #define CREATE_OBJECT_SYMBOLS 328 |
| #define INPUT 329 |
| #define GROUP 330 |
| #define OUTPUT 331 |
| #define CONSTRUCTORS 332 |
| #define ALIGNMOD 333 |
| #define AT 334 |
| #define SUBALIGN 335 |
| #define PROVIDE 336 |
| #define PROVIDE_HIDDEN 337 |
| #define AS_NEEDED 338 |
| #define CHIP 339 |
| #define LIST 340 |
| #define SECT 341 |
| #define ABSOLUTE 342 |
| #define LOAD 343 |
| #define NEWLINE 344 |
| #define ENDWORD 345 |
| #define ORDER 346 |
| #define NAMEWORD 347 |
| #define ASSERT_K 348 |
| #define FORMAT 349 |
| #define PUBLIC 350 |
| #define BASE 351 |
| #define ALIAS 352 |
| #define TRUNCATE 353 |
| #define REL 354 |
| #define INPUT_SCRIPT 355 |
| #define INPUT_MRI_SCRIPT 356 |
| #define INPUT_DEFSYM 357 |
| #define CASE 358 |
| #define EXTERN 359 |
| #define START 360 |
| #define VERS_TAG 361 |
| #define VERS_IDENTIFIER 362 |
| #define GLOBAL 363 |
| #define LOCAL 364 |
| #define VERSIONK 365 |
| #define INPUT_VERSION_SCRIPT 366 |
| #define KEEP 367 |
| #define ONLY_IF_RO 368 |
| #define ONLY_IF_RW 369 |
| #define SPECIAL 370 |
| #define EXCLUDE_FILE 371 |
| |
| |
| |
| |
| #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
| #line 65 "ldgram.y" |
| typedef union YYSTYPE { |
| bfd_vma integer; |
| struct big_int |
| { |
| bfd_vma integer; |
| char *str; |
| } bigint; |
| fill_type *fill; |
| char *name; |
| const char *cname; |
| struct wildcard_spec wildcard; |
| struct wildcard_list *wildcard_list; |
| struct name_list *name_list; |
| int token; |
| union etree_union *etree; |
| struct phdr_info |
| { |
| bfd_boolean filehdr; |
| bfd_boolean phdrs; |
| union etree_union *at; |
| union etree_union *flags; |
| } phdr; |
| struct lang_nocrossref *nocrossref; |
| struct lang_output_section_phdr_list *section_phdr; |
| struct bfd_elf_version_deps *deflist; |
| struct bfd_elf_version_expr *versyms; |
| struct bfd_elf_version_tree *versnode; |
| } YYSTYPE; |
| /* Line 1447 of yacc.c. */ |
| #line 299 "ldgram.h" |
| # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| # define YYSTYPE_IS_DECLARED 1 |
| # define YYSTYPE_IS_TRIVIAL 1 |
| #endif |
| |
| extern YYSTYPE yylval; |
| |
| |
| |