/* ELF executable support for BFD.
- Copyright (C) 1991-2016 Free Software Foundation, Inc.
+ Copyright (C) 1991-2017 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
So we are kind, and reset the string index value to 0
so that at least some processing can be done. */
i_ehdrp->e_shstrndx = SHN_UNDEF;
- _bfd_error_handler (_("warning: %s has a corrupt string table index - ignoring"), abfd->filename);
+ _bfd_error_handler
+ (_("warning: %B has a corrupt string table index - ignoring"),
+ abfd);
}
}
else if (i_ehdrp->e_shstrndx != SHN_UNDEF)
while (count--)
{
Elf_External_Phdr extphdr;
+
elf_swap_phdr_out (abfd, phdr, &extphdr);
if (bfd_bwrite (&extphdr, sizeof (Elf_External_Phdr), abfd)
!= sizeof (Elf_External_Phdr))
&& verhdr->sh_size / sizeof (Elf_External_Versym) != symcount)
{
_bfd_error_handler
- (_("%s: version count (%ld) does not match symbol count (%ld)"),
- abfd->filename,
+ /* xgettext:c-format */
+ (_("%B: version count (%ld) does not match symbol count (%ld)"),
+ abfd,
(long) (verhdr->sh_size / sizeof (Elf_External_Versym)),
symcount);
else if (ELF_R_SYM (rela.r_info) > symcount)
{
_bfd_error_handler
- (_("%s(%s): relocation %d has invalid symbol index %ld"),
- abfd->filename, asect->name, i, ELF_R_SYM (rela.r_info));
+ /* xgettext:c-format */
+ (_("%B(%A): relocation %d has invalid symbol index %ld"),
+ abfd, asect, i, ELF_R_SYM (rela.r_info));
relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
}
else