* bfd.c (bfd_archive_filename): New function.
* bfd-in2.h: Regenerate. * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename in error messages where the bfd is an input bfd. * aout-cris.c: Likewise. * coff-arm.c: Likewise. * coff-mcore.c: Likewise. * coff-ppc.c: Likewise. * coff-rs6000.c: Likewise. * coff-sh.c: Likewise. * coff-tic54x.c: Likewise. * coff-tic80.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffgen.c: Likewise. * cofflink.c: Likewise. * ecofflink.c: Likewise. * elf-hppa.h: Likewise. * elf.c: Likewise. * elf32-arm.h: Likewise. * elf32-cris.c: Likewise. * elf32-gen.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf32-i386.c: Likewise. * elf32-m32r.c: Likewise. * elf32-mcore.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-s390.c: Likewise. * elf32-sh.c: Likewise. * elf32-sparc.c: Likewise. * elf32-v850.c: Likewise. * elf64-alpha.c: Likewise. * elf64-gen.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sparc.c: Likewise. * elf64-x86-64.c: Likewise. * elflink.h: Likewise. * elfxx-ia64.c: Likewise. * ieee.c: Likewise. * ihex.c: Likewise. * libbfd.c: Likewise. * pdp11.c: Likewise. * pe-mips.c: Likewise. * peicode.h: Likewise. * srec.c: Likewise. * xcofflink.c: Likewise. * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. * elflink.c (_bfd_elf_create_linker_section): Better grammar for error message. * coff-mcore.c (coff_mcore_relocate_section): Internalionalise error message. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. Consolidate error messages, and split long messages to two lines.
This commit is contained in:
parent
1c4dcb5771
commit
8f615d0704
50 changed files with 463 additions and 387 deletions
|
@ -1071,7 +1071,7 @@ styp_to_sec_flags (abfd, hdr, name, section, flags_ptr)
|
|||
{
|
||||
(*_bfd_error_handler)
|
||||
(_("%s (%s): Section flag %s (0x%x) ignored"),
|
||||
bfd_get_filename (abfd), name, unhandled, flag);
|
||||
bfd_archive_filename (abfd), name, unhandled, flag);
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
|
@ -4194,7 +4194,7 @@ coff_slurp_line_table (abfd, asect)
|
|||
{
|
||||
(*_bfd_error_handler)
|
||||
(_("%s: warning: illegal symbol index %ld in line numbers"),
|
||||
bfd_get_filename (abfd), dst.l_addr.l_symndx);
|
||||
bfd_archive_filename (abfd), dst.l_addr.l_symndx);
|
||||
symndx = 0;
|
||||
warned = true;
|
||||
}
|
||||
|
@ -4208,7 +4208,7 @@ coff_slurp_line_table (abfd, asect)
|
|||
{
|
||||
(*_bfd_error_handler)
|
||||
(_("%s: warning: duplicate line number information for `%s'"),
|
||||
bfd_get_filename (abfd),
|
||||
bfd_archive_filename (abfd),
|
||||
bfd_asymbol_name (&sym->symbol));
|
||||
}
|
||||
sym->lineno = cache_ptr;
|
||||
|
@ -4567,7 +4567,7 @@ coff_slurp_symbol_table (abfd)
|
|||
default:
|
||||
(*_bfd_error_handler)
|
||||
(_("%s: Unrecognized storage class %d for %s symbol `%s'"),
|
||||
bfd_get_filename (abfd), src->u.syment.n_sclass,
|
||||
bfd_archive_filename (abfd), src->u.syment.n_sclass,
|
||||
dst->symbol.section->name, dst->symbol.name);
|
||||
dst->symbol.flags = BSF_DEBUGGING;
|
||||
dst->symbol.value = (src->u.syment.n_value);
|
||||
|
@ -4698,7 +4698,7 @@ coff_classify_symbol (abfd, syment)
|
|||
|
||||
(*_bfd_error_handler)
|
||||
(_("warning: %s: local symbol `%s' has no section"),
|
||||
bfd_get_filename (abfd),
|
||||
bfd_archive_filename (abfd),
|
||||
_bfd_coff_internal_syment_name (abfd, syment, buf));
|
||||
}
|
||||
|
||||
|
@ -4805,7 +4805,7 @@ coff_slurp_reloc_table (abfd, asect, symbols)
|
|||
{
|
||||
(*_bfd_error_handler)
|
||||
(_("%s: warning: illegal symbol index %ld in relocs"),
|
||||
bfd_get_filename (abfd), dst.r_symndx);
|
||||
bfd_archive_filename (abfd), dst.r_symndx);
|
||||
cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
|
||||
ptr = NULL;
|
||||
}
|
||||
|
@ -4843,7 +4843,7 @@ coff_slurp_reloc_table (abfd, asect, symbols)
|
|||
{
|
||||
(*_bfd_error_handler)
|
||||
(_("%s: illegal relocation type %d at address 0x%lx"),
|
||||
bfd_get_filename (abfd), dst.r_type, (long) dst.r_vaddr);
|
||||
bfd_archive_filename (abfd), dst.r_type, (long) dst.r_vaddr);
|
||||
bfd_set_error (bfd_error_bad_value);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue