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 SORT DATA_SEGMENT_ALIGN DATA_SEGMENT_END
133 %token SIZEOF_HEADERS OUTPUT_FORMAT FORCE_COMMON_ALLOCATION OUTPUT_ARCH
134 %token INHIBIT_COMMON_ALLOCATION
135 %token SIZEOF_HEADERS
137 %token MEMORY DEFSYMEND
138 %token NOLOAD DSECT COPY INFO OVERLAY
139 %token NAME LNAME DEFINED TARGET_K SEARCH_DIR MAP ENTRY
140 %token
<integer
> NEXT
141 %token SIZEOF ADDR LOADADDR MAX_K MIN_K
142 %token STARTUP HLL SYSLIB FLOAT NOFLOAT NOCROSSREFS
144 %token LENGTH CREATE_OBJECT_SYMBOLS INPUT GROUP OUTPUT CONSTRUCTORS
145 %token ALIGNMOD AT SUBALIGN PROVIDE
146 %type
<token
> assign_op atype attributes_opt
147 %type
<name
> filename
148 %token CHIP LIST SECT ABSOLUTE LOAD NEWLINE ENDWORD ORDER NAMEWORD ASSERT_K
149 %token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
150 %token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM CASE EXTERN START
151 %token
<name
> VERS_TAG VERS_IDENTIFIER
152 %token GLOBAL LOCAL VERSIONK INPUT_VERSION_SCRIPT
155 %type
<versyms
> vers_defns
156 %type
<versnode
> vers_tag
157 %type
<deflist
> verdep
162 INPUT_SCRIPT script_file
163 | INPUT_MRI_SCRIPT mri_script_file
164 | INPUT_VERSION_SCRIPT version_script_file
165 | INPUT_DEFSYM defsym_expr
177 lang_add_assignment
(exp_assop
($3,$2,$4));
181 /* SYNTAX WITHIN AN MRI SCRIPT FILE */
185 PUSH_ERROR
(_
("MRI style script"));
196 mri_script_lines mri_script_command NEWLINE
204 einfo
(_
("%P%F: unrecognised keyword in MRI style script '%s'\n"),$1);
207 config.map_filename
= "-";
209 | ORDER ordernamelist
211 | PUBLIC NAME
'=' exp
212 { mri_public
($2, $4); }
213 | PUBLIC NAME
',' exp
214 { mri_public
($2, $4); }
216 { mri_public
($2, $3); }
220 { mri_output_section
($2, $4);}
222 { mri_output_section
($2, $3);}
224 { mri_output_section
($2, $4);}
225 | ALIGN_K NAME
'=' exp
226 { mri_align
($2,$4); }
227 | ALIGN_K NAME
',' exp
228 { mri_align
($2,$4); }
229 | ALIGNMOD NAME
'=' exp
230 { mri_alignmod
($2,$4); }
231 | ALIGNMOD NAME
',' exp
232 { mri_alignmod
($2,$4); }
233 | ABSOLUTE mri_abs_name_list
234 | LOAD mri_load_name_list
237 | ALIAS NAME
',' NAME
238 { mri_alias
($2,$4,0);}
240 { mri_alias
($2, 0, (int) $4.integer
); }
244 { mri_truncate
((unsigned int) $2.integer
); }
246 | EXTERN extern_name_list
248 { ldlex_script
(); ldfile_open_command_file
($2); }
250 { ldlex_popstate
(); }
252 { lang_add_entry
($2, FALSE
); }
257 ordernamelist
',' NAME
{ mri_order
($3); }
258 | ordernamelist NAME
{ mri_order
($2); }
265 | mri_load_name_list
',' NAME
{ mri_load
($3); }
270 { mri_only_load
($1); }
271 | mri_abs_name_list
',' NAME
272 { mri_only_load
($3); }
276 /* empty */ { $$
= NULL
; }
278 | casesymlist
',' NAME
283 { ldlang_add_undef
($1); }
284 | extern_name_list NAME
285 { ldlang_add_undef
($2); }
286 | extern_name_list
',' NAME
287 { ldlang_add_undef
($3); }
315 | floating_point_support
319 | TARGET_K
'(' NAME
')'
320 { lang_add_target
($3); }
321 | SEARCH_DIR
'(' filename
')'
322 { ldfile_add_library_path
($3, FALSE
); }
323 | OUTPUT
'(' filename
')'
324 { lang_add_output
($3, 1); }
325 | OUTPUT_FORMAT
'(' NAME
')'
326 { lang_add_output_format
($3, (char *) NULL
,
328 | OUTPUT_FORMAT
'(' NAME
',' NAME
',' NAME
')'
329 { lang_add_output_format
($3, $5, $7, 1); }
330 | OUTPUT_ARCH
'(' NAME
')'
331 { ldfile_set_output_arch
($3, bfd_arch_unknown
); }
332 | FORCE_COMMON_ALLOCATION
333 { command_line.force_common_definition
= TRUE
; }
334 | INHIBIT_COMMON_ALLOCATION
335 { command_line.inhibit_common_definition
= TRUE
; }
336 | INPUT
'(' input_list
')'
338 { lang_enter_group
(); }
340 { lang_leave_group
(); }
341 | MAP
'(' filename
')'
342 { lang_add_map
($3); }
344 { ldlex_script
(); ldfile_open_command_file
($2); }
346 { ldlex_popstate
(); }
347 | NOCROSSREFS
'(' nocrossref_list
')'
349 lang_add_nocrossref
($3);
351 | EXTERN
'(' extern_name_list
')'
356 { lang_add_input_file
($1,lang_input_file_is_search_file_enum
,
358 | input_list
',' NAME
359 { lang_add_input_file
($3,lang_input_file_is_search_file_enum
,
362 { lang_add_input_file
($2,lang_input_file_is_search_file_enum
,
365 { lang_add_input_file
($1,lang_input_file_is_l_enum
,
367 | input_list
',' LNAME
368 { lang_add_input_file
($3,lang_input_file_is_l_enum
,
371 { lang_add_input_file
($2,lang_input_file_is_l_enum
,
376 SECTIONS
'{' sec_or_group_p1
'}'
380 sec_or_group_p1 section
381 | sec_or_group_p1 statement_anywhere
387 { lang_add_entry
($3, FALSE
); }
389 | ASSERT_K
{ldlex_expression
();} '(' exp
',' NAME
')'
391 lang_add_assignment
(exp_assert
($4, $6)); }
394 /* The '*' and '?' cases are there because the lexer returns them as
395 separate tokens rather than as NAME. */
416 $$.exclude_name_list
= NULL
;
418 | EXCLUDE_FILE
'(' exclude_name_list
')' wildcard_name
422 $$.exclude_name_list
= $3;
424 | SORT
'(' wildcard_name
')'
428 $$.exclude_name_list
= NULL
;
430 | SORT
'(' EXCLUDE_FILE
'(' exclude_name_list
')' wildcard_name
')'
434 $$.exclude_name_list
= $5;
439 exclude_name_list wildcard_name
441 struct name_list
*tmp
;
442 tmp
= (struct name_list
*) xmalloc
(sizeof
*tmp
);
450 struct name_list
*tmp
;
451 tmp
= (struct name_list
*) xmalloc
(sizeof
*tmp
);
459 file_NAME_list opt_comma wildcard_spec
461 struct wildcard_list
*tmp
;
462 tmp
= (struct wildcard_list
*) xmalloc
(sizeof
*tmp
);
470 struct wildcard_list
*tmp
;
471 tmp
= (struct wildcard_list
*) xmalloc
(sizeof
*tmp
);
478 input_section_spec_no_keep:
481 struct wildcard_spec tmp
;
483 tmp.exclude_name_list
= NULL
;
485 lang_add_wild
(&tmp
, NULL
, ldgram_had_keep
);
487 |
'[' file_NAME_list
']'
489 lang_add_wild
(NULL
, $2, ldgram_had_keep
);
491 | wildcard_spec
'(' file_NAME_list
')'
493 lang_add_wild
(&$1, $3, ldgram_had_keep
);
498 input_section_spec_no_keep
500 { ldgram_had_keep
= TRUE
; }
501 input_section_spec_no_keep
')'
502 { ldgram_had_keep
= FALSE
; }
507 | CREATE_OBJECT_SYMBOLS
509 lang_add_attribute
(lang_object_symbols_statement_enum
);
515 lang_add_attribute
(lang_constructors_statement_enum
);
517 | SORT
'(' CONSTRUCTORS
')'
519 constructors_sorted
= TRUE
;
520 lang_add_attribute
(lang_constructors_statement_enum
);
523 | length
'(' mustbe_exp
')'
525 lang_add_data
((int) $1, $3);
528 | FILL
'(' fill_exp
')'
535 statement_list statement
560 $$
= exp_get_fill
($1,
563 lang_first_phase_enum
);
570 |
{ $$
= (fill_type
*) 0; }
600 lang_add_assignment
(exp_assop
($2, $1, $3));
602 | NAME assign_op mustbe_exp
604 lang_add_assignment
(exp_assop
('=', $1,
610 | PROVIDE
'(' NAME
'=' mustbe_exp
')'
612 lang_add_assignment
(exp_provide
($3, $5));
622 MEMORY
'{' memory_spec memory_spec_list
'}'
626 memory_spec_list memory_spec
627 | memory_spec_list
',' memory_spec
633 { region
= lang_memory_region_lookup
($1, TRUE
); }
635 origin_spec opt_comma length_spec
640 ORIGIN
'=' mustbe_exp
643 exp_get_vma
($3, 0L,"origin", lang_first_phase_enum
);
648 LENGTH
'=' mustbe_exp
649 { region
->length
= exp_get_vma
($3,
652 lang_first_phase_enum
);
658 { /* dummy action to avoid bison 1.25 error message */ }
659 |
'(' attributes_list
')'
664 | attributes_list attributes_string
669 { lang_set_flags
(region
, $1, 0); }
671 { lang_set_flags
(region
, $2, 1); }
675 STARTUP
'(' filename
')'
676 { lang_startup
($3); }
680 HLL
'(' high_level_library_NAME_list
')'
682 { ldemul_hll
((char *)NULL
); }
685 high_level_library_NAME_list:
686 high_level_library_NAME_list opt_comma filename
694 SYSLIB
'(' low_level_library_NAME_list
')'
695 ; low_level_library_NAME_list
:
696 low_level_library_NAME_list opt_comma filename
697 { ldemul_syslib
($3); }
701 floating_point_support:
703 { lang_float
(TRUE
); }
705 { lang_float
(FALSE
); }
713 | NAME nocrossref_list
715 struct lang_nocrossref
*n
;
717 n
= (struct lang_nocrossref
*) xmalloc
(sizeof
*n
);
722 | NAME
',' nocrossref_list
724 struct lang_nocrossref
*n
;
726 n
= (struct lang_nocrossref
*) xmalloc
(sizeof
*n
);
733 mustbe_exp: { ldlex_expression
(); }
735 { ldlex_popstate
(); $$
=$2;}
740 { $$
= exp_unop
('-', $2); }
743 | NEXT
'(' exp
')' %prec UNARY
744 { $$
= exp_unop
((int) $1,$3); }
745 |
'!' exp %prec UNARY
746 { $$
= exp_unop
('!', $2); }
747 |
'+' exp %prec UNARY
749 |
'~' exp %prec UNARY
750 { $$
= exp_unop
('~', $2);}
753 { $$
= exp_binop
('*', $1, $3); }
755 { $$
= exp_binop
('/', $1, $3); }
757 { $$
= exp_binop
('%', $1, $3); }
759 { $$
= exp_binop
('+', $1, $3); }
761 { $$
= exp_binop
('-' , $1, $3); }
763 { $$
= exp_binop
(LSHIFT
, $1, $3); }
765 { $$
= exp_binop
(RSHIFT
, $1, $3); }
767 { $$
= exp_binop
(EQ
, $1, $3); }
769 { $$
= exp_binop
(NE
, $1, $3); }
771 { $$
= exp_binop
(LE
, $1, $3); }
773 { $$
= exp_binop
(GE
, $1, $3); }
775 { $$
= exp_binop
('<' , $1, $3); }
777 { $$
= exp_binop
('>' , $1, $3); }
779 { $$
= exp_binop
('&' , $1, $3); }
781 { $$
= exp_binop
('^' , $1, $3); }
783 { $$
= exp_binop
('|' , $1, $3); }
784 | exp
'?' exp
':' exp
785 { $$
= exp_trinop
('?' , $1, $3, $5); }
787 { $$
= exp_binop
(ANDAND
, $1, $3); }
789 { $$
= exp_binop
(OROR
, $1, $3); }
790 | DEFINED
'(' NAME
')'
791 { $$
= exp_nameop
(DEFINED
, $3); }
793 { $$
= exp_bigintop
($1.integer
, $1.str
); }
795 { $$
= exp_nameop
(SIZEOF_HEADERS
,0); }
797 | SIZEOF
'(' NAME
')'
798 { $$
= exp_nameop
(SIZEOF
,$3); }
800 { $$
= exp_nameop
(ADDR
,$3); }
801 | LOADADDR
'(' NAME
')'
802 { $$
= exp_nameop
(LOADADDR
,$3); }
803 | ABSOLUTE
'(' exp
')'
804 { $$
= exp_unop
(ABSOLUTE
, $3); }
805 | ALIGN_K
'(' exp
')'
806 { $$
= exp_unop
(ALIGN_K
,$3); }
807 | ALIGN_K
'(' exp
',' exp
')'
808 { $$
= exp_binop
(ALIGN_K
,$3,$5); }
809 | DATA_SEGMENT_ALIGN
'(' exp
',' exp
')'
810 { $$
= exp_binop
(DATA_SEGMENT_ALIGN
, $3, $5); }
811 | DATA_SEGMENT_END
'(' exp
')'
812 { $$
= exp_unop
(DATA_SEGMENT_END
, $3); }
814 { $$
= exp_unop
(ALIGN_K
,$3); }
816 { $$
= exp_nameop
(NAME
,$1); }
817 | MAX_K
'(' exp
',' exp
')'
818 { $$
= exp_binop
(MAX_K
, $3, $5 ); }
819 | MIN_K
'(' exp
',' exp
')'
820 { $$
= exp_binop
(MIN_K
, $3, $5 ); }
821 | ASSERT_K
'(' exp
',' NAME
')'
822 { $$
= exp_assert
($3, $5); }
827 AT
'>' NAME
{ $$
= $3; }
832 AT
'(' exp
')' { $$
= $3; }
837 SUBALIGN
'(' exp
')' { $$
= $3; }
841 section: NAME
{ ldlex_expression
(); }
844 opt_subalign
{ ldlex_popstate
(); ldlex_script
(); }
847 lang_enter_output_section_statement
($1, $3,
852 '}' { ldlex_popstate
(); ldlex_expression
(); }
853 memspec_opt memspec_at_opt phdr_opt fill_opt
856 lang_leave_output_section_statement
($15, $12, $14, $13);
861 { ldlex_expression
(); }
862 opt_exp_without_type opt_nocrossrefs opt_at opt_subalign
863 { ldlex_popstate
(); ldlex_script
(); }
866 lang_enter_overlay
($3, $6);
870 { ldlex_popstate
(); ldlex_expression
(); }
871 memspec_opt memspec_at_opt phdr_opt fill_opt
874 lang_leave_overlay
($5, (int) $4,
878 |
/* The GROUP case is just enough to support the gcc
879 svr3.ifile script. It is not intended to be full
880 support. I'm not even sure what GROUP is supposed
882 GROUP
{ ldlex_expression
(); }
886 lang_add_assignment
(exp_assop
('=', ".", $3));
888 '{' sec_or_group_p1
'}'
892 NOLOAD
{ sectype
= noload_section
; }
893 | DSECT
{ sectype
= dsect_section
; }
894 | COPY
{ sectype
= copy_section
; }
895 | INFO
{ sectype
= info_section
; }
896 | OVERLAY
{ sectype
= overlay_section
; }
901 |
/* EMPTY */ { sectype
= normal_section
; }
902 |
'(' ')' { sectype
= normal_section
; }
906 exp atype
':' { $$
= $1; }
907 | atype
':' { $$
= (etree_type
*)NULL
; }
908 |
/* The BIND cases are to support the gcc svr3.ifile
909 script. They aren't intended to implement full
910 support for the BIND keyword. I'm not even sure
911 what BIND is supposed to mean. */
912 BIND
'(' exp
')' atype
':' { $$
= $3; }
913 | BIND
'(' exp
')' BLOCK
'(' exp
')' atype
':'
917 opt_exp_without_type:
919 |
':' { $$
= (etree_type
*) NULL
; }
932 |
{ $$
= DEFAULT_MEMORY_REGION
; }
942 struct lang_output_section_phdr_list
*n
;
944 n
= ((struct lang_output_section_phdr_list
*)
945 xmalloc
(sizeof
*n
));
959 lang_enter_overlay_section
($2);
961 '{' statement_list_opt
'}'
962 { ldlex_popstate
(); ldlex_expression
(); }
966 lang_leave_overlay_section
($9, $8);
972 PHDRS
'{' phdr_list
'}'
981 NAME
{ ldlex_expression
(); }
982 phdr_type phdr_qualifiers
{ ldlex_popstate
(); }
985 lang_new_phdr
($1, $3, $4.filehdr
, $4.phdrs
, $4.at
,
995 if
($1->type.node_class
== etree_name
996 && $1->type.node_code
== NAME
)
1000 static const char * const phdr_types
[] =
1002 "PT_NULL", "PT_LOAD", "PT_DYNAMIC",
1003 "PT_INTERP", "PT_NOTE", "PT_SHLIB",
1009 i
< sizeof phdr_types
/ sizeof phdr_types
[0];
1011 if
(strcmp
(s
, phdr_types
[i
]) == 0)
1016 if
(i
== sizeof phdr_types
/ sizeof phdr_types
[0])
1018 if
(strcmp
(s
, "PT_GNU_EH_FRAME") == 0)
1019 $$
= exp_intop
(0x6474e550);
1020 else if
(strcmp
(s
, "PT_GNU_STACK") == 0)
1021 $$
= exp_intop
(0x6474e551);
1025 %X%P:%S: unknown phdr type `%s' (try integer literal)\n"),
1037 memset
(&$$
, 0, sizeof
(struct phdr_info
));
1039 | NAME phdr_val phdr_qualifiers
1042 if
(strcmp
($1, "FILEHDR") == 0 && $2 == NULL
)
1044 else if
(strcmp
($1, "PHDRS") == 0 && $2 == NULL
)
1046 else if
(strcmp
($1, "FLAGS") == 0 && $2 != NULL
)
1049 einfo
(_
("%X%P:%S: PHDRS syntax error at `%s'\n"), $1);
1051 | AT
'(' exp
')' phdr_qualifiers
1069 /* This syntax is used within an external version script file. */
1071 version_script_file:
1073 ldlex_version_file
();
1074 PUSH_ERROR
(_
("VERSION script"));
1083 /* This is used within a normal linker script file. */
1087 ldlex_version_script
();
1089 VERSIONK
'{' vers_nodes
'}'
1097 | vers_nodes vers_node
1101 '{' vers_tag
'}' ';'
1103 lang_register_vers_node
(NULL
, $2, NULL
);
1105 | VERS_TAG
'{' vers_tag
'}' ';'
1107 lang_register_vers_node
($1, $3, NULL
);
1109 | VERS_TAG
'{' vers_tag
'}' verdep
';'
1111 lang_register_vers_node
($1, $3, $5);
1118 $$
= lang_add_vers_depend
(NULL
, $1);
1122 $$
= lang_add_vers_depend
($1, $2);
1129 $$
= lang_new_vers_node
(NULL
, NULL
);
1133 $$
= lang_new_vers_node
($1, NULL
);
1135 | GLOBAL
':' vers_defns
';'
1137 $$
= lang_new_vers_node
($3, NULL
);
1139 | LOCAL
':' vers_defns
';'
1141 $$
= lang_new_vers_node
(NULL
, $3);
1143 | GLOBAL
':' vers_defns
';' LOCAL
':' vers_defns
';'
1145 $$
= lang_new_vers_node
($3, $7);
1152 $$
= lang_new_vers_pattern
(NULL
, $1, ldgram_vers_current_lang
);
1154 | vers_defns
';' VERS_IDENTIFIER
1156 $$
= lang_new_vers_pattern
($1, $3, ldgram_vers_current_lang
);
1158 | vers_defns
';' EXTERN NAME
'{'
1160 $
<name
>$
= ldgram_vers_current_lang
;
1161 ldgram_vers_current_lang
= $4;
1163 vers_defns opt_semicolon
'}'
1166 ldgram_vers_current_lang
= $
<name
>6;
1170 $
<name
>$
= ldgram_vers_current_lang
;
1171 ldgram_vers_current_lang
= $2;
1173 vers_defns opt_semicolon
'}'
1176 ldgram_vers_current_lang
= $
<name
>4;
1190 if
(ldfile_assumed_script
)
1191 einfo
(_
("%P:%s: file format not recognized; treating as linker script\n"),
1192 ldfile_input_filename
);
1193 if
(error_index
> 0 && error_index
< ERROR_NAME_MAX
)
1194 einfo
("%P%F:%S: %s in %s\n", arg
, error_names
[error_index
-1]);
1196 einfo
("%P%F:%S: %s\n", arg
);