X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldgram.y;h=595b89f0ba3d46a60ef4446f15f099a9b12716c6;hb=6d9d6da48e84a65871a9d72fa785105d603990a6;hp=d701e076a2c239e63ff98d06201700f82097812d;hpb=6c19b93bcd0d136f7be4d1e1e3f2e8d7b5917009;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldgram.y b/ld/ldgram.y index d701e076a2..595b89f0ba 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -1,5 +1,5 @@ /* A YACC grammar to parse a superset of the AT&T linker scripting language. - Copyright (C) 1991-2017 Free Software Foundation, Inc. + Copyright (C) 1991-2019 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com). This file is part of the GNU Binutils. @@ -29,6 +29,7 @@ #include "sysdep.h" #include "bfd.h" #include "bfdlink.h" +#include "ctf-api.h" #include "ld.h" #include "ldexp.h" #include "ldver.h" @@ -206,7 +207,7 @@ mri_script_command: CHIP exp | CHIP exp ',' exp | NAME { - einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),$1); + einfo(_("%F%P: unrecognised keyword in MRI style script '%s'\n"),$1); } | LIST { config.map_filename = "-"; @@ -819,7 +820,6 @@ origin_spec: ORIGIN '=' mustbe_exp { region->origin_exp = $3; - region->current = region->origin; } ; @@ -1244,7 +1244,7 @@ phdr_type: else { einfo (_("\ -%X%P:%S: unknown phdr type `%s' (try integer literal)\n"), +%X%P:%pS: unknown phdr type `%s' (try integer literal)\n"), NULL, s); $$ = exp_intop (0); } @@ -1268,7 +1268,7 @@ phdr_qualifiers: else if (strcmp ($1, "FLAGS") == 0 && $2 != NULL) $$.flags = $2; else - einfo (_("%X%P:%S: PHDRS syntax error at `%s'\n"), + einfo (_("%X%P:%pS: PHDRS syntax error at `%s'\n"), NULL, $1); } | AT '(' exp ')' phdr_qualifiers @@ -1477,7 +1477,7 @@ yyerror(arg) einfo (_("%P:%s: file format not recognized; treating as linker script\n"), ldlex_filename ()); if (error_index > 0 && error_index < ERROR_NAME_MAX) - einfo ("%P%F:%S: %s in %s\n", NULL, arg, error_names[error_index - 1]); + einfo ("%F%P:%pS: %s in %s\n", NULL, arg, error_names[error_index - 1]); else - einfo ("%P%F:%S: %s\n", NULL, arg); + einfo ("%F%P:%pS: %s\n", NULL, arg); }