1 /* A YACC grammar to parse a superset of the AT&T linker scripting language.
2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3 2001, 2002, 2003 Free Software Foundation, Inc.
4 Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
6 This file is part of GNU ld.
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 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, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
27 #define DONTDECLARE_MALLOC
48 static enum section_type sectype;
50 lang_memory_region_type *region;
52 bfd_boolean ldgram_want_filename = TRUE;
53 FILE *saved_script_handle = NULL;
54 bfd_boolean force_make_executable = FALSE;
56 bfd_boolean ldgram_in_script = FALSE;
57 bfd_boolean ldgram_had_equals = FALSE;
58 bfd_boolean ldgram_had_keep = FALSE;
59 char *ldgram_vers_current_lang = NULL;
61 #define ERROR_NAME_MAX 20
62 static char *error_names[ERROR_NAME_MAX];
63 static int error_index;
64 #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
65 #define POP_ERROR() error_index--;
77 struct wildcard_spec wildcard;
78 struct wildcard_list *wildcard_list;
79 struct name_list *name_list;
81 union etree_union *etree;
86 union etree_union *at;
87 union etree_union *flags;
89 struct lang_nocrossref *nocrossref;
90 struct lang_output_section_phdr_list *section_phdr;
91 struct bfd_elf_version_deps *deflist;
92 struct bfd_elf_version_expr *versyms;
93 struct bfd_elf_version_tree *versnode;
96 %type <etree> exp opt_exp_with_type mustbe_exp opt_at phdr_type phdr_val
97 %type <etree> opt_exp_without_type opt_subalign
98 %type <fill> fill_opt fill_exp
99 %type <name_list> exclude_name_list
100 %type <wildcard_list> file_NAME_list
101 %type <name> memspec_opt casesymlist
102 %type <name> memspec_at_opt
103 %type <cname> wildcard_name
104 %type <wildcard> wildcard_spec
106 %token <name> NAME LNAME
107 %type <integer> length
108 %type <phdr> phdr_qualifiers
109 %type <nocrossref> nocrossref_list
110 %type <section_phdr> phdr_opt
111 %type <integer> opt_nocrossrefs
113 %right <token> PLUSEQ MINUSEQ MULTEQ DIVEQ '=' LSHIFTEQ RSHIFTEQ ANDEQ OREQ
114 %right <token> '?' ':'
121 %left <token> '<' '>' LE GE
122 %left <token> LSHIFT RSHIFT
124 %left <token> '+' '-'
125 %left <token> '*' '/' '%'
130 %token <token> ALIGN_K BLOCK BIND QUAD SQUAD LONG SHORT BYTE
131 %token SECTIONS PHDRS DATA_SEGMENT_ALIGN DATA_SEGMENT_RELRO_END DATA_SEGMENT_END
132 %token SORT_BY_NAME SORT_BY_ALIGNMENT
134 %token SIZEOF_HEADERS OUTPUT_FORMAT FORCE_COMMON_ALLOCATION OUTPUT_ARCH
135 %token INHIBIT_COMMON_ALLOCATION
136 %token SIZEOF_HEADERS
138 %token MEMORY DEFSYMEND
139 %token NOLOAD DSECT COPY INFO OVERLAY
140 %token NAME LNAME DEFINED TARGET_K SEARCH_DIR MAP ENTRY
141 %token <integer> NEXT
142 %token SIZEOF ADDR LOADADDR MAX_K MIN_K
143 %token STARTUP HLL SYSLIB FLOAT NOFLOAT NOCROSSREFS
145 %token LENGTH CREATE_OBJECT_SYMBOLS INPUT GROUP OUTPUT CONSTRUCTORS
146 %token ALIGNMOD AT SUBALIGN PROVIDE
147 %type <token> assign_op atype attributes_opt sect_constraint
148 %type <name> filename
149 %token CHIP LIST SECT ABSOLUTE LOAD NEWLINE ENDWORD ORDER NAMEWORD ASSERT_K
150 %token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
151 %token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM CASE EXTERN START
152 %token <name> VERS_TAG VERS_IDENTIFIER
153 %token GLOBAL LOCAL VERSIONK INPUT_VERSION_SCRIPT
154 %token KEEP ONLY_IF_RO ONLY_IF_RW
156 %type <versyms> vers_defns
157 %type <versnode> vers_tag
158 %type <deflist> verdep
163 INPUT_SCRIPT script_file
164 | INPUT_MRI_SCRIPT mri_script_file
165 | INPUT_VERSION_SCRIPT version_script_file
166 | INPUT_DEFSYM defsym_expr
178 lang_add_assignment(exp_assop($3,$2,$4));
182 /* SYNTAX WITHIN AN MRI SCRIPT FILE */
186 PUSH_ERROR (_("MRI style script"));
197 mri_script_lines mri_script_command NEWLINE
205 einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),$1);
208 config.map_filename = "-";
210 | ORDER ordernamelist
212 | PUBLIC NAME '=' exp
213 { mri_public($2, $4); }
214 | PUBLIC NAME ',' exp
215 { mri_public($2, $4); }
217 { mri_public($2, $3); }
221 { mri_output_section($2, $4);}
223 { mri_output_section($2, $3);}
225 { mri_output_section($2, $4);}
226 | ALIGN_K NAME '=' exp
227 { mri_align($2,$4); }
228 | ALIGN_K NAME ',' exp
229 { mri_align($2,$4); }
230 | ALIGNMOD NAME '=' exp
231 { mri_alignmod($2,$4); }
232 | ALIGNMOD NAME ',' exp
233 { mri_alignmod($2,$4); }
234 | ABSOLUTE mri_abs_name_list
235 | LOAD mri_load_name_list
238 | ALIAS NAME ',' NAME
239 { mri_alias($2,$4,0);}
241 { mri_alias ($2, 0, (int) $4.integer); }
245 { mri_truncate ((unsigned int) $2.integer); }
247 | EXTERN extern_name_list
249 { ldlex_script (); ldfile_open_command_file($2); }
251 { ldlex_popstate (); }
253 { lang_add_entry ($2, FALSE); }
258 ordernamelist ',' NAME { mri_order($3); }
259 | ordernamelist NAME { mri_order($2); }
266 | mri_load_name_list ',' NAME { mri_load($3); }
271 { mri_only_load($1); }
272 | mri_abs_name_list ',' NAME
273 { mri_only_load($3); }
277 /* empty */ { $$ = NULL; }
279 | casesymlist ',' NAME
284 { ldlang_add_undef ($1); }
285 | extern_name_list NAME
286 { ldlang_add_undef ($2); }
287 | extern_name_list ',' NAME
288 { ldlang_add_undef ($3); }
316 | floating_point_support
320 | TARGET_K '(' NAME ')'
321 { lang_add_target($3); }
322 | SEARCH_DIR '(' filename ')'
323 { ldfile_add_library_path ($3, FALSE); }
324 | OUTPUT '(' filename ')'
325 { lang_add_output($3, 1); }
326 | OUTPUT_FORMAT '(' NAME ')'
327 { lang_add_output_format ($3, (char *) NULL,
329 | OUTPUT_FORMAT '(' NAME ',' NAME ',' NAME ')'
330 { lang_add_output_format ($3, $5, $7, 1); }
331 | OUTPUT_ARCH '(' NAME ')'
332 { ldfile_set_output_arch ($3, bfd_arch_unknown); }
333 | FORCE_COMMON_ALLOCATION
334 { command_line.force_common_definition = TRUE ; }
335 | INHIBIT_COMMON_ALLOCATION
336 { command_line.inhibit_common_definition = TRUE ; }
337 | INPUT '(' input_list ')'
339 { lang_enter_group (); }
341 { lang_leave_group (); }
342 | MAP '(' filename ')'
343 { lang_add_map($3); }
345 { ldlex_script (); ldfile_open_command_file($2); }
347 { ldlex_popstate (); }
348 | NOCROSSREFS '(' nocrossref_list ')'
350 lang_add_nocrossref ($3);
352 | EXTERN '(' extern_name_list ')'
357 { lang_add_input_file($1,lang_input_file_is_search_file_enum,
359 | input_list ',' NAME
360 { lang_add_input_file($3,lang_input_file_is_search_file_enum,
363 { lang_add_input_file($2,lang_input_file_is_search_file_enum,
366 { lang_add_input_file($1,lang_input_file_is_l_enum,
368 | input_list ',' LNAME
369 { lang_add_input_file($3,lang_input_file_is_l_enum,
372 { lang_add_input_file($2,lang_input_file_is_l_enum,
377 SECTIONS '{' sec_or_group_p1 '}'
381 sec_or_group_p1 section
382 | sec_or_group_p1 statement_anywhere
388 { lang_add_entry ($3, FALSE); }
390 | ASSERT_K {ldlex_expression ();} '(' exp ',' NAME ')'
392 lang_add_assignment (exp_assert ($4, $6)); }
395 /* The '*' and '?' cases are there because the lexer returns them as
396 separate tokens rather than as NAME. */
417 $$.exclude_name_list = NULL;
419 | EXCLUDE_FILE '(' exclude_name_list ')' wildcard_name
423 $$.exclude_name_list = $3;
425 | SORT_BY_NAME '(' wildcard_name ')'
429 $$.exclude_name_list = NULL;
431 | SORT_BY_ALIGNMENT '(' wildcard_name ')'
434 $$.sorted = by_alignment;
435 $$.exclude_name_list = NULL;
437 | SORT_BY_NAME '(' SORT_BY_ALIGNMENT '(' wildcard_name ')' ')'
440 $$.sorted = by_name_alignment;
441 $$.exclude_name_list = NULL;
443 | SORT_BY_NAME '(' SORT_BY_NAME '(' wildcard_name ')' ')'
447 $$.exclude_name_list = NULL;
449 | SORT_BY_ALIGNMENT '(' SORT_BY_NAME '(' wildcard_name ')' ')'
452 $$.sorted = by_alignment_name;
453 $$.exclude_name_list = NULL;
455 | SORT_BY_ALIGNMENT '(' SORT_BY_ALIGNMENT '(' wildcard_name ')' ')'
458 $$.sorted = by_alignment;
459 $$.exclude_name_list = NULL;
461 | SORT_BY_NAME '(' EXCLUDE_FILE '(' exclude_name_list ')' wildcard_name ')'
465 $$.exclude_name_list = $5;
470 exclude_name_list wildcard_name
472 struct name_list *tmp;
473 tmp = (struct name_list *) xmalloc (sizeof *tmp);
481 struct name_list *tmp;
482 tmp = (struct name_list *) xmalloc (sizeof *tmp);
490 file_NAME_list opt_comma wildcard_spec
492 struct wildcard_list *tmp;
493 tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
501 struct wildcard_list *tmp;
502 tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
509 input_section_spec_no_keep:
512 struct wildcard_spec tmp;
514 tmp.exclude_name_list = NULL;
516 lang_add_wild (&tmp, NULL, ldgram_had_keep);
518 | '[' file_NAME_list ']'
520 lang_add_wild (NULL, $2, ldgram_had_keep);
522 | wildcard_spec '(' file_NAME_list ')'
524 lang_add_wild (&$1, $3, ldgram_had_keep);
529 input_section_spec_no_keep
531 { ldgram_had_keep = TRUE; }
532 input_section_spec_no_keep ')'
533 { ldgram_had_keep = FALSE; }
538 | CREATE_OBJECT_SYMBOLS
540 lang_add_attribute(lang_object_symbols_statement_enum);
546 lang_add_attribute(lang_constructors_statement_enum);
548 | SORT_BY_NAME '(' CONSTRUCTORS ')'
550 constructors_sorted = TRUE;
551 lang_add_attribute (lang_constructors_statement_enum);
554 | length '(' mustbe_exp ')'
556 lang_add_data ((int) $1, $3);
559 | FILL '(' fill_exp ')'
566 statement_list statement
591 $$ = exp_get_fill ($1,
594 lang_first_phase_enum);
601 | { $$ = (fill_type *) 0; }
631 lang_add_assignment (exp_assop ($2, $1, $3));
633 | NAME assign_op mustbe_exp
635 lang_add_assignment (exp_assop ('=', $1,
641 | PROVIDE '(' NAME '=' mustbe_exp ')'
643 lang_add_assignment (exp_provide ($3, $5));
653 MEMORY '{' memory_spec memory_spec_list '}'
657 memory_spec_list memory_spec
658 | memory_spec_list ',' memory_spec
664 { region = lang_memory_region_lookup ($1, TRUE); }
666 origin_spec opt_comma length_spec
671 ORIGIN '=' mustbe_exp
674 exp_get_vma($3, 0L,"origin", lang_first_phase_enum);
679 LENGTH '=' mustbe_exp
680 { region->length = exp_get_vma($3,
683 lang_first_phase_enum);
689 { /* dummy action to avoid bison 1.25 error message */ }
690 | '(' attributes_list ')'
695 | attributes_list attributes_string
700 { lang_set_flags (region, $1, 0); }
702 { lang_set_flags (region, $2, 1); }
706 STARTUP '(' filename ')'
707 { lang_startup($3); }
711 HLL '(' high_level_library_NAME_list ')'
713 { ldemul_hll((char *)NULL); }
716 high_level_library_NAME_list:
717 high_level_library_NAME_list opt_comma filename
725 SYSLIB '(' low_level_library_NAME_list ')'
726 ; low_level_library_NAME_list:
727 low_level_library_NAME_list opt_comma filename
728 { ldemul_syslib($3); }
732 floating_point_support:
734 { lang_float(TRUE); }
736 { lang_float(FALSE); }
744 | NAME nocrossref_list
746 struct lang_nocrossref *n;
748 n = (struct lang_nocrossref *) xmalloc (sizeof *n);
753 | NAME ',' nocrossref_list
755 struct lang_nocrossref *n;
757 n = (struct lang_nocrossref *) xmalloc (sizeof *n);
764 mustbe_exp: { ldlex_expression(); }
766 { ldlex_popstate(); $$=$2;}
771 { $$ = exp_unop('-', $2); }
774 | NEXT '(' exp ')' %prec UNARY
775 { $$ = exp_unop((int) $1,$3); }
776 | '!' exp %prec UNARY
777 { $$ = exp_unop('!', $2); }
778 | '+' exp %prec UNARY
780 | '~' exp %prec UNARY
781 { $$ = exp_unop('~', $2);}
784 { $$ = exp_binop('*', $1, $3); }
786 { $$ = exp_binop('/', $1, $3); }
788 { $$ = exp_binop('%', $1, $3); }
790 { $$ = exp_binop('+', $1, $3); }
792 { $$ = exp_binop('-' , $1, $3); }
794 { $$ = exp_binop(LSHIFT , $1, $3); }
796 { $$ = exp_binop(RSHIFT , $1, $3); }
798 { $$ = exp_binop(EQ , $1, $3); }
800 { $$ = exp_binop(NE , $1, $3); }
802 { $$ = exp_binop(LE , $1, $3); }
804 { $$ = exp_binop(GE , $1, $3); }
806 { $$ = exp_binop('<' , $1, $3); }
808 { $$ = exp_binop('>' , $1, $3); }
810 { $$ = exp_binop('&' , $1, $3); }
812 { $$ = exp_binop('^' , $1, $3); }
814 { $$ = exp_binop('|' , $1, $3); }
815 | exp '?' exp ':' exp
816 { $$ = exp_trinop('?' , $1, $3, $5); }
818 { $$ = exp_binop(ANDAND , $1, $3); }
820 { $$ = exp_binop(OROR , $1, $3); }
821 | DEFINED '(' NAME ')'
822 { $$ = exp_nameop(DEFINED, $3); }
824 { $$ = exp_bigintop ($1.integer, $1.str); }
826 { $$ = exp_nameop(SIZEOF_HEADERS,0); }
828 | SIZEOF '(' NAME ')'
829 { $$ = exp_nameop(SIZEOF,$3); }
831 { $$ = exp_nameop(ADDR,$3); }
832 | LOADADDR '(' NAME ')'
833 { $$ = exp_nameop(LOADADDR,$3); }
834 | ABSOLUTE '(' exp ')'
835 { $$ = exp_unop(ABSOLUTE, $3); }
836 | ALIGN_K '(' exp ')'
837 { $$ = exp_unop(ALIGN_K,$3); }
838 | ALIGN_K '(' exp ',' exp ')'
839 { $$ = exp_binop(ALIGN_K,$3,$5); }
840 | DATA_SEGMENT_ALIGN '(' exp ',' exp ')'
841 { $$ = exp_binop (DATA_SEGMENT_ALIGN, $3, $5); }
842 | DATA_SEGMENT_RELRO_END '(' exp ',' exp ')'
843 { $$ = exp_binop (DATA_SEGMENT_RELRO_END, $5, $3); }
844 | DATA_SEGMENT_END '(' exp ')'
845 { $$ = exp_unop(DATA_SEGMENT_END, $3); }
847 { $$ = exp_unop(ALIGN_K,$3); }
849 { $$ = exp_nameop(NAME,$1); }
850 | MAX_K '(' exp ',' exp ')'
851 { $$ = exp_binop (MAX_K, $3, $5 ); }
852 | MIN_K '(' exp ',' exp ')'
853 { $$ = exp_binop (MIN_K, $3, $5 ); }
854 | ASSERT_K '(' exp ',' NAME ')'
855 { $$ = exp_assert ($3, $5); }
860 AT '>' NAME { $$ = $3; }
865 AT '(' exp ')' { $$ = $3; }
870 SUBALIGN '(' exp ')' { $$ = $3; }
875 ONLY_IF_RO { $$ = ONLY_IF_RO; }
876 | ONLY_IF_RW { $$ = ONLY_IF_RW; }
880 section: NAME { ldlex_expression(); }
883 opt_subalign { ldlex_popstate (); ldlex_script (); }
887 lang_enter_output_section_statement($1, $3,
892 '}' { ldlex_popstate (); ldlex_expression (); }
893 memspec_opt memspec_at_opt phdr_opt fill_opt
896 lang_leave_output_section_statement ($16, $13, $15, $14);
901 { ldlex_expression (); }
902 opt_exp_without_type opt_nocrossrefs opt_at opt_subalign
903 { ldlex_popstate (); ldlex_script (); }
906 lang_enter_overlay ($3, $6);
910 { ldlex_popstate (); ldlex_expression (); }
911 memspec_opt memspec_at_opt phdr_opt fill_opt
914 lang_leave_overlay ($5, (int) $4,
918 | /* The GROUP case is just enough to support the gcc
919 svr3.ifile script. It is not intended to be full
920 support. I'm not even sure what GROUP is supposed
922 GROUP { ldlex_expression (); }
926 lang_add_assignment (exp_assop ('=', ".", $3));
928 '{' sec_or_group_p1 '}'
932 NOLOAD { sectype = noload_section; }
933 | DSECT { sectype = dsect_section; }
934 | COPY { sectype = copy_section; }
935 | INFO { sectype = info_section; }
936 | OVERLAY { sectype = overlay_section; }
941 | /* EMPTY */ { sectype = normal_section; }
942 | '(' ')' { sectype = normal_section; }
946 exp atype ':' { $$ = $1; }
947 | atype ':' { $$ = (etree_type *)NULL; }
948 | /* The BIND cases are to support the gcc svr3.ifile
949 script. They aren't intended to implement full
950 support for the BIND keyword. I'm not even sure
951 what BIND is supposed to mean. */
952 BIND '(' exp ')' atype ':' { $$ = $3; }
953 | BIND '(' exp ')' BLOCK '(' exp ')' atype ':'
957 opt_exp_without_type:
959 | ':' { $$ = (etree_type *) NULL; }
972 | { $$ = DEFAULT_MEMORY_REGION; }
982 struct lang_output_section_phdr_list *n;
984 n = ((struct lang_output_section_phdr_list *)
985 xmalloc (sizeof *n));
999 lang_enter_overlay_section ($2);
1001 '{' statement_list_opt '}'
1002 { ldlex_popstate (); ldlex_expression (); }
1006 lang_leave_overlay_section ($9, $8);
1012 PHDRS '{' phdr_list '}'
1021 NAME { ldlex_expression (); }
1022 phdr_type phdr_qualifiers { ldlex_popstate (); }
1025 lang_new_phdr ($1, $3, $4.filehdr, $4.phdrs, $4.at,
1035 if ($1->type.node_class == etree_name
1036 && $1->type.node_code == NAME)
1040 static const char * const phdr_types[] =
1042 "PT_NULL", "PT_LOAD", "PT_DYNAMIC",
1043 "PT_INTERP", "PT_NOTE", "PT_SHLIB",
1049 i < sizeof phdr_types / sizeof phdr_types[0];
1051 if (strcmp (s, phdr_types[i]) == 0)
1056 if (i == sizeof phdr_types / sizeof phdr_types[0])
1058 if (strcmp (s, "PT_GNU_EH_FRAME") == 0)
1059 $$ = exp_intop (0x6474e550);
1060 else if (strcmp (s, "PT_GNU_STACK") == 0)
1061 $$ = exp_intop (0x6474e551);
1065 %X%P:%S: unknown phdr type `%s' (try integer literal)\n"),
1077 memset (&$$, 0, sizeof (struct phdr_info));
1079 | NAME phdr_val phdr_qualifiers
1082 if (strcmp ($1, "FILEHDR") == 0 && $2 == NULL)
1084 else if (strcmp ($1, "PHDRS") == 0 && $2 == NULL)
1086 else if (strcmp ($1, "FLAGS") == 0 && $2 != NULL)
1089 einfo (_("%X%P:%S: PHDRS syntax error at `%s'\n"), $1);
1091 | AT '(' exp ')' phdr_qualifiers
1109 /* This syntax is used within an external version script file. */
1111 version_script_file:
1113 ldlex_version_file ();
1114 PUSH_ERROR (_("VERSION script"));
1123 /* This is used within a normal linker script file. */
1127 ldlex_version_script ();
1129 VERSIONK '{' vers_nodes '}'
1137 | vers_nodes vers_node
1141 '{' vers_tag '}' ';'
1143 lang_register_vers_node (NULL, $2, NULL);
1145 | VERS_TAG '{' vers_tag '}' ';'
1147 lang_register_vers_node ($1, $3, NULL);
1149 | VERS_TAG '{' vers_tag '}' verdep ';'
1151 lang_register_vers_node ($1, $3, $5);
1158 $$ = lang_add_vers_depend (NULL, $1);
1162 $$ = lang_add_vers_depend ($1, $2);
1169 $$ = lang_new_vers_node (NULL, NULL);
1173 $$ = lang_new_vers_node ($1, NULL);
1175 | GLOBAL ':' vers_defns ';'
1177 $$ = lang_new_vers_node ($3, NULL);
1179 | LOCAL ':' vers_defns ';'
1181 $$ = lang_new_vers_node (NULL, $3);
1183 | GLOBAL ':' vers_defns ';' LOCAL ':' vers_defns ';'
1185 $$ = lang_new_vers_node ($3, $7);
1192 $$ = lang_new_vers_pattern (NULL, $1, ldgram_vers_current_lang);
1194 | vers_defns ';' VERS_IDENTIFIER
1196 $$ = lang_new_vers_pattern ($1, $3, ldgram_vers_current_lang);
1198 | vers_defns ';' EXTERN NAME '{'
1200 $<name>$ = ldgram_vers_current_lang;
1201 ldgram_vers_current_lang = $4;
1203 vers_defns opt_semicolon '}'
1206 ldgram_vers_current_lang = $<name>6;
1210 $<name>$ = ldgram_vers_current_lang;
1211 ldgram_vers_current_lang = $2;
1213 vers_defns opt_semicolon '}'
1216 ldgram_vers_current_lang = $<name>4;
1230 if (ldfile_assumed_script)
1231 einfo (_("%P:%s: file format not recognized; treating as linker script\n"),
1232 ldfile_input_filename);
1233 if (error_index > 0 && error_index < ERROR_NAME_MAX)
1234 einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]);
1236 einfo ("%P%F:%S: %s\n", arg);