/* Main program of GNU linker.
- Copyright (C) 1991-2019 Free Software Foundation, Inc.
+ Copyright (C) 1991-2020 Free Software Foundation, Inc.
Written by Steve Chamberlain steve@cygnus.com
This file is part of the GNU Binutils.
input = (lang_input_statement_type *)
xcalloc (1, sizeof (lang_input_statement_type));
input->header.type = lang_input_statement_enum;
- input->filename = abfd->filename;
- input->local_sym_name = abfd->filename;
+ input->filename = bfd_get_filename (abfd);
+ input->local_sym_name = bfd_get_filename (abfd);
input->the_bfd = abfd;
parent = bfd_usrdata (abfd->my_archive);
/* Don't claim new IR symbols after all IR symbols have
been claimed. */
if (verbose)
- info_msg ("%pI: no new IR symbols to claimi\n",
+ info_msg ("%pI: no new IR symbols to claim\n",
&orig_input);
input->flags.claimed = 0;
return FALSE;
else
{
error_count = 0;
- if (error_name != NULL)
- free (error_name);
+ free (error_name);
error_name = xstrdup (name);
}