X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felfcode.h;h=ef097f739cddc7e06c3a0e3a6fb65b348e0a3603;hb=e15c3eb45bdc8bd5717fd5ceddcc30c3de07b58f;hp=c7e0e466c65d4d6e906790c541112ffc67408551;hpb=1a9ccd70f9a75dc6b48d340059f28ef3550c107b;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elfcode.h b/bfd/elfcode.h index c7e0e466c6..ef097f739c 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -1,5 +1,5 @@ /* 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 @@ -756,8 +756,9 @@ elf_object_p (bfd *abfd) 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) @@ -1189,8 +1190,8 @@ elf_slurp_symbol_table (bfd *abfd, asymbol **symptrs, bfd_boolean dynamic) { _bfd_error_handler /* xgettext:c-format */ - (_("%s: version count (%ld) does not match symbol count (%ld)"), - abfd->filename, + (_("%B: version count (%ld) does not match symbol count (%ld)"), + abfd, (long) (verhdr->sh_size / sizeof (Elf_External_Versym)), symcount); @@ -1444,8 +1445,8 @@ elf_slurp_reloc_table_from_section (bfd *abfd, { _bfd_error_handler /* xgettext:c-format */ - (_("%s(%s): relocation %d has invalid symbol index %ld"), - abfd->filename, asect->name, i, ELF_R_SYM (rela.r_info)); + (_("%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