diff options
author | Alan Modra <amodra@gmail.com> | 2017-04-13 13:20:15 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-04-13 17:07:24 +0930 |
commit | dae82561a286618acf097ad9894eafba98377f66 (patch) | |
tree | f8258d3f7d0d7b12efc237898f5eeeed5bcbee4f /bfd/elfcode.h | |
parent | c08bb8dd9bd9fd101018b287726187d7ed6a0035 (diff) | |
download | gdb-dae82561a286618acf097ad9894eafba98377f66.zip gdb-dae82561a286618acf097ad9894eafba98377f66.tar.gz gdb-dae82561a286618acf097ad9894eafba98377f66.tar.bz2 |
Use %A and %B in more error messages
* aoutx.h: Use %B and %A in error messages throughout file.
* aout-cris.c: Likewise.
* archive.c: Likewise.
* binary.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-tic4x.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coffswap.h: Likewise.
* cpu-arm.c: Likewise.
* elf-eh-frame.c: Likewise.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-arc.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-iq2000.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-visium.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-sh64.c: Likewise.
* elfcode.h: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* hpux-core.c: Likewise.
* ieee.c: Likewise.
* ihex.c: Likewise.
* linker.c: Likewise.
* merge.c: Likewise.
* mmo.c: Likewise.
* oasys.c: Likewise.
* pdp11.c: Likewise.
* peXXigen.c: Likewise.
* rs6000-core.c: Likewise.
* vms-alpha.c: Likewise.
* xcofflink.c: Likewise.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 5142273..ef097f7 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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 |