X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldgram.y;h=36845c4c30447de2c874b75fa7a9d63e0ca23357;hb=6d350754a32007465f9adbc11b87339e4493b358;hp=335624b386cca3e3d73c65885562508a823375d0;hpb=c1c8c1ef9acdeddf719f358b91590545440cea68;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldgram.y b/ld/ldgram.y index 335624b386..36845c4c30 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-2018 Free Software Foundation, Inc. + Copyright (C) 1991-2020 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; } ; @@ -1313,7 +1313,7 @@ dynamic_list_node: dynamic_list_tag: vers_defns ';' { - lang_append_dynamic_list ($1); + lang_append_dynamic_list (current_dynamic_list_p, $1); } ; @@ -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:%pS: %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:%pS: %s\n", NULL, arg); + einfo ("%F%P:%pS: %s\n", NULL, arg); }