1 /* A Bison parser, made by GNU Bison 2.4.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
6 2009, 2010 Free Software Foundation, Inc.
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.
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.
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/>. */
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.
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
38 /* Put the tokens into the symbol table, so that GDB and other debuggers
74 CREATE_OBJECT_SYMBOLS = 291,
75 DATA_SEGMENT_ALIGN = 292,
76 DATA_SEGMENT_END = 293,
77 DATA_SEGMENT_RELRO_END = 294,
85 FORCE_COMMON_ALLOCATION = 302,
90 INHIBIT_COMMON_ALLOCATION = 307,
117 PROVIDE_HIDDEN = 334,
124 SIZEOF_HEADERS = 341,
125 SORT_BY_ALIGNMENT = 342,
136 PARSING_LINKER_SCRIPT = 353,
137 PARSING_VERSION_SCRIPT = 354,
138 PARSING_DEFSYM = 355,
139 PARSING_DYNAMIC_LIST = 356
161 #define QUOTED_STRING 276
168 #define AS_NEEDED 283
174 #define CONSTRUCTORS 289
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
183 #define EXCLUDE_FILE 298
187 #define FORCE_COMMON_ALLOCATION 302
192 #define INHIBIT_COMMON_ALLOCATION 307
206 #define NOCROSSREFS 321
209 #define ONLY_IF_RO 324
210 #define ONLY_IF_RW 325
214 #define OUTPUT_ARCH 329
215 #define OUTPUT_FORMAT 330
219 #define PROVIDE_HIDDEN 334
221 #define SEARCH_DIR 336
223 #define SEGMENT_START 338
226 #define SIZEOF_HEADERS 341
227 #define SORT_BY_ALIGNMENT 342
228 #define SORT_BY_NAME 343
238 #define PARSING_LINKER_SCRIPT 353
239 #define PARSING_VERSION_SCRIPT 354
240 #define PARSING_DEFSYM 355
241 #define PARSING_DYNAMIC_LIST 356
246 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
247 typedef union YYSTYPE
250 /* Line 1685 of yacc.c */
251 #line 53 "yyscript.y"
254 struct Parser_string string;
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;
283 /* Line 1685 of yacc.c */
284 #line 285 "yyscript.h"
286 # define YYSTYPE_IS_TRIVIAL 1
287 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
288 # define YYSTYPE_IS_DECLARED 1