buildtools/binutils/gold/yyscript.h
Niels Sascha Reedijk a635d7fb9b import binutils 2.41
2023-08-05 16:18:06 +01:00

323 lines
11 KiB
C

/* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 3 of the License, 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, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
#ifndef YY_YY_YYSCRIPT_H_INCLUDED
# define YY_YY_YYSCRIPT_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
YYEMPTY = -2,
YYEOF = 0, /* "end of file" */
YYerror = 256, /* error */
YYUNDEF = 257, /* "invalid token" */
PLUSEQ = 258, /* PLUSEQ */
MINUSEQ = 259, /* MINUSEQ */
MULTEQ = 260, /* MULTEQ */
DIVEQ = 261, /* DIVEQ */
LSHIFTEQ = 262, /* LSHIFTEQ */
RSHIFTEQ = 263, /* RSHIFTEQ */
ANDEQ = 264, /* ANDEQ */
OREQ = 265, /* OREQ */
OROR = 266, /* OROR */
ANDAND = 267, /* ANDAND */
EQ = 268, /* EQ */
NE = 269, /* NE */
LE = 270, /* LE */
GE = 271, /* GE */
LSHIFT = 272, /* LSHIFT */
RSHIFT = 273, /* RSHIFT */
UNARY = 274, /* UNARY */
STRING = 275, /* STRING */
QUOTED_STRING = 276, /* QUOTED_STRING */
INTEGER = 277, /* INTEGER */
ABSOLUTE = 278, /* ABSOLUTE */
ADDR = 279, /* ADDR */
ALIGN_K = 280, /* ALIGN_K */
ALIGNOF = 281, /* ALIGNOF */
ASSERT_K = 282, /* ASSERT_K */
AS_NEEDED = 283, /* AS_NEEDED */
AT = 284, /* AT */
BIND = 285, /* BIND */
BLOCK = 286, /* BLOCK */
BYTE = 287, /* BYTE */
CONSTANT = 288, /* CONSTANT */
CONSTRUCTORS = 289, /* CONSTRUCTORS */
COPY = 290, /* COPY */
CREATE_OBJECT_SYMBOLS = 291, /* CREATE_OBJECT_SYMBOLS */
DATA_SEGMENT_ALIGN = 292, /* DATA_SEGMENT_ALIGN */
DATA_SEGMENT_END = 293, /* DATA_SEGMENT_END */
DATA_SEGMENT_RELRO_END = 294, /* DATA_SEGMENT_RELRO_END */
DEFINED = 295, /* DEFINED */
DSECT = 296, /* DSECT */
ENTRY = 297, /* ENTRY */
EXCLUDE_FILE = 298, /* EXCLUDE_FILE */
EXTERN = 299, /* EXTERN */
FILL = 300, /* FILL */
FLOAT = 301, /* FLOAT */
FORCE_COMMON_ALLOCATION = 302, /* FORCE_COMMON_ALLOCATION */
GLOBAL = 303, /* GLOBAL */
GROUP = 304, /* GROUP */
HIDDEN = 305, /* HIDDEN */
HLL = 306, /* HLL */
INCLUDE = 307, /* INCLUDE */
INHIBIT_COMMON_ALLOCATION = 308, /* INHIBIT_COMMON_ALLOCATION */
INFO = 309, /* INFO */
INPUT = 310, /* INPUT */
KEEP = 311, /* KEEP */
LEN = 312, /* LEN */
LENGTH = 313, /* LENGTH */
LOADADDR = 314, /* LOADADDR */
LOCAL = 315, /* LOCAL */
LONG = 316, /* LONG */
MAP = 317, /* MAP */
MAX_K = 318, /* MAX_K */
MEMORY = 319, /* MEMORY */
MIN_K = 320, /* MIN_K */
NEXT = 321, /* NEXT */
NOCROSSREFS = 322, /* NOCROSSREFS */
NOFLOAT = 323, /* NOFLOAT */
NOLOAD = 324, /* NOLOAD */
ONLY_IF_RO = 325, /* ONLY_IF_RO */
ONLY_IF_RW = 326, /* ONLY_IF_RW */
ORG = 327, /* ORG */
ORIGIN = 328, /* ORIGIN */
OUTPUT = 329, /* OUTPUT */
OUTPUT_ARCH = 330, /* OUTPUT_ARCH */
OUTPUT_FORMAT = 331, /* OUTPUT_FORMAT */
OVERLAY = 332, /* OVERLAY */
PHDRS = 333, /* PHDRS */
PROVIDE = 334, /* PROVIDE */
PROVIDE_HIDDEN = 335, /* PROVIDE_HIDDEN */
QUAD = 336, /* QUAD */
SEARCH_DIR = 337, /* SEARCH_DIR */
SECTIONS = 338, /* SECTIONS */
SEGMENT_START = 339, /* SEGMENT_START */
SHORT = 340, /* SHORT */
SIZEOF = 341, /* SIZEOF */
SIZEOF_HEADERS = 342, /* SIZEOF_HEADERS */
SORT_BY_ALIGNMENT = 343, /* SORT_BY_ALIGNMENT */
SORT_BY_INIT_PRIORITY = 344, /* SORT_BY_INIT_PRIORITY */
SORT_BY_NAME = 345, /* SORT_BY_NAME */
SPECIAL = 346, /* SPECIAL */
SQUAD = 347, /* SQUAD */
STARTUP = 348, /* STARTUP */
SUBALIGN = 349, /* SUBALIGN */
SYSLIB = 350, /* SYSLIB */
TARGET_K = 351, /* TARGET_K */
TRUNCATE = 352, /* TRUNCATE */
VERSIONK = 353, /* VERSIONK */
OPTION = 354, /* OPTION */
PARSING_LINKER_SCRIPT = 355, /* PARSING_LINKER_SCRIPT */
PARSING_VERSION_SCRIPT = 356, /* PARSING_VERSION_SCRIPT */
PARSING_DEFSYM = 357, /* PARSING_DEFSYM */
PARSING_DYNAMIC_LIST = 358, /* PARSING_DYNAMIC_LIST */
PARSING_SECTIONS_BLOCK = 359, /* PARSING_SECTIONS_BLOCK */
PARSING_SECTION_COMMANDS = 360, /* PARSING_SECTION_COMMANDS */
PARSING_MEMORY_DEF = 361 /* PARSING_MEMORY_DEF */
};
typedef enum yytokentype yytoken_kind_t;
#endif
/* Token kinds. */
#define YYEMPTY -2
#define YYEOF 0
#define YYerror 256
#define YYUNDEF 257
#define PLUSEQ 258
#define MINUSEQ 259
#define MULTEQ 260
#define DIVEQ 261
#define LSHIFTEQ 262
#define RSHIFTEQ 263
#define ANDEQ 264
#define OREQ 265
#define OROR 266
#define ANDAND 267
#define EQ 268
#define NE 269
#define LE 270
#define GE 271
#define LSHIFT 272
#define RSHIFT 273
#define UNARY 274
#define STRING 275
#define QUOTED_STRING 276
#define INTEGER 277
#define ABSOLUTE 278
#define ADDR 279
#define ALIGN_K 280
#define ALIGNOF 281
#define ASSERT_K 282
#define AS_NEEDED 283
#define AT 284
#define BIND 285
#define BLOCK 286
#define BYTE 287
#define CONSTANT 288
#define CONSTRUCTORS 289
#define COPY 290
#define CREATE_OBJECT_SYMBOLS 291
#define DATA_SEGMENT_ALIGN 292
#define DATA_SEGMENT_END 293
#define DATA_SEGMENT_RELRO_END 294
#define DEFINED 295
#define DSECT 296
#define ENTRY 297
#define EXCLUDE_FILE 298
#define EXTERN 299
#define FILL 300
#define FLOAT 301
#define FORCE_COMMON_ALLOCATION 302
#define GLOBAL 303
#define GROUP 304
#define HIDDEN 305
#define HLL 306
#define INCLUDE 307
#define INHIBIT_COMMON_ALLOCATION 308
#define INFO 309
#define INPUT 310
#define KEEP 311
#define LEN 312
#define LENGTH 313
#define LOADADDR 314
#define LOCAL 315
#define LONG 316
#define MAP 317
#define MAX_K 318
#define MEMORY 319
#define MIN_K 320
#define NEXT 321
#define NOCROSSREFS 322
#define NOFLOAT 323
#define NOLOAD 324
#define ONLY_IF_RO 325
#define ONLY_IF_RW 326
#define ORG 327
#define ORIGIN 328
#define OUTPUT 329
#define OUTPUT_ARCH 330
#define OUTPUT_FORMAT 331
#define OVERLAY 332
#define PHDRS 333
#define PROVIDE 334
#define PROVIDE_HIDDEN 335
#define QUAD 336
#define SEARCH_DIR 337
#define SECTIONS 338
#define SEGMENT_START 339
#define SHORT 340
#define SIZEOF 341
#define SIZEOF_HEADERS 342
#define SORT_BY_ALIGNMENT 343
#define SORT_BY_INIT_PRIORITY 344
#define SORT_BY_NAME 345
#define SPECIAL 346
#define SQUAD 347
#define STARTUP 348
#define SUBALIGN 349
#define SYSLIB 350
#define TARGET_K 351
#define TRUNCATE 352
#define VERSIONK 353
#define OPTION 354
#define PARSING_LINKER_SCRIPT 355
#define PARSING_VERSION_SCRIPT 356
#define PARSING_DEFSYM 357
#define PARSING_DYNAMIC_LIST 358
#define PARSING_SECTIONS_BLOCK 359
#define PARSING_SECTION_COMMANDS 360
#define PARSING_MEMORY_DEF 361
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 56 "yyscript.y"
/* A string. */
struct Parser_string string;
/* A number. */
uint64_t integer;
/* An expression. */
Expression_ptr expr;
/* An output section header. */
struct Parser_output_section_header output_section_header;
/* An output section trailer. */
struct Parser_output_section_trailer output_section_trailer;
/* A section constraint. */
enum Section_constraint constraint;
/* A complete input section specification. */
struct Input_section_spec input_section_spec;
/* A list of wildcard specifications, with exclusions. */
struct Wildcard_sections wildcard_sections;
/* A single wildcard specification. */
struct Wildcard_section wildcard_section;
/* A list of strings. */
String_list_ptr string_list;
/* Information for a program header. */
struct Phdr_info phdr_info;
/* Used for version scripts and within VERSION {}. */
struct Version_dependency_list* deplist;
struct Version_expression_list* versyms;
struct Version_tree* versnode;
enum Script_section_type section_type;
#line 309 "yyscript.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int yyparse (void* closure);
#endif /* !YY_YY_YYSCRIPT_H_INCLUDED */