diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-25 21:31:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-25 21:31:29 +0000 |
commit | 7a7fbffb25e87d2399478a82f6f41343ea78450a (patch) | |
tree | fc97510f1508a0adbbfd7e1937733b31045bbbe8 /bfd/elf32-ppc.c | |
parent | f1c6dd5d163360c9dadd850ebe0069e1774cb8c9 (diff) | |
download | gdb-7a7fbffb25e87d2399478a82f6f41343ea78450a.zip gdb-7a7fbffb25e87d2399478a82f6f41343ea78450a.tar.gz gdb-7a7fbffb25e87d2399478a82f6f41343ea78450a.tar.bz2 |
* aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
rather than a direct fprintf.
* archive.c (_bfd_write_archive_contents): Likewise.
* coffcode.h (coff_slurp_symbol_table): Likewise.
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
(ppc_elf_unsupported_reloc): Likewise.
(ppc_elf_relocate_section): Likewise.
* i386linux.c (linux_tally_symbols): Likewise.
(linux_finish_dynamic_link): Likewise.
* osf-core.c (osf_core_core_file_p): Likewise.
* rs6000-core.c (rs6000coff_get_section_contents): Likewise.
* som.c (som_sizeof_headers): Likewise.
* srec.c (srec_bad_byte): Likewise.
* bfd.c (bfd_assert): Likewise. Also change file to be const.
* libbfd-in.h (bfd_assert): Declare first parameter const.
* libbfd.h: Rebuild.
* coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
bfd_reloc_overflow is enough.
* coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
* coff-h8500.c (rtype2howto): Likewise.
* coff-z8k.c (rtype2howto): Likewise.
* coffcode.h (dummy_reloc16_extra_cases): Likewise.
* elf.c (_bfd_elf_get_lineno): Likewise.
(_bfd_elf_no_info_to_howto): Likewise.
(_bfd_elf_no_info_to_howto_rel): Likewise.
* hp300hpux.c (convert_sym_type): Likewise.
(MY(swap_std_reloc_in)): Likewise.
* elf.c (bfd_section_from_shdr): Remove #if 0 sections.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 61865a0..3540d40 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -931,11 +931,11 @@ ppc_elf_merge_private_bfd_data (ibfd, obfd) /* Check if we have the same endianess */ if (ibfd->xvec->byteorder_big_p != obfd->xvec->byteorder_big_p) { - fprintf (stderr, - "%s: compiled for a %s endian system and target is %s endian.\n", - bfd_get_filename (ibfd), - (ibfd->xvec->byteorder_big_p) ? "big" : "little", - (obfd->xvec->byteorder_big_p) ? "big" : "little"); + (*_bfd_error_handler) + ("%s: compiled for a %s endian system and target is %s endian.\n", + bfd_get_filename (ibfd), + (ibfd->xvec->byteorder_big_p) ? "big" : "little", + (obfd->xvec->byteorder_big_p) ? "big" : "little"); bfd_set_error (bfd_error_wrong_format); return false; @@ -965,16 +965,16 @@ ppc_elf_merge_private_bfd_data (ibfd, obfd) if ((new_flags & EF_PPC_RELOCATABLE) != 0 && (old_flags & (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB)) == 0) { - fprintf (stderr, - "%s: compiled with -mrelocatable and linked with modules compiled normally\n", - bfd_get_filename (ibfd)); + (*_bfd_error_handler) + ("%s: compiled with -mrelocatable and linked with modules compiled normally\n", + bfd_get_filename (ibfd)); } else if ((new_flags & (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB)) == 0 && (old_flags & EF_PPC_RELOCATABLE) != 0) { - fprintf (stderr, - "%s: compiled normally and linked with modules compiled with -mrelocatable\n", - bfd_get_filename (ibfd)); + (*_bfd_error_handler) + ("%s: compiled normally and linked with modules compiled with -mrelocatable\n", + bfd_get_filename (ibfd)); } else if ((new_flags & EF_PPC_RELOCATABLE_LIB) != 0) elf_elfheader (obfd)->e_flags |= EF_PPC_RELOCATABLE_LIB; @@ -986,23 +986,23 @@ ppc_elf_merge_private_bfd_data (ibfd, obfd) if ((new_flags & EF_PPC_EMB) != 0 && (old_flags & EF_PPC_EMB) == 0) { new_flags &= ~EF_PPC_EMB; - fprintf (stderr, - "%s: compiled for the eabi and linked with modules compiled for System V\n", - bfd_get_filename (ibfd)); + (*_bfd_error_handler) + ("%s: compiled for the eabi and linked with modules compiled for System V\n", + bfd_get_filename (ibfd)); } else if ((new_flags & EF_PPC_EMB) == 0 && (old_flags & EF_PPC_EMB) != 0) { old_flags &= ~EF_PPC_EMB; - fprintf (stderr, - "%s: compiled for System V and linked with modules compiled for eabi\n", - bfd_get_filename (ibfd)); + (*_bfd_error_handler) + ("%s: compiled for System V and linked with modules compiled for eabi\n", + bfd_get_filename (ibfd)); } /* Warn about any other mismatches */ if (new_flags != old_flags) - fprintf (stderr, - "%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)\n", - bfd_get_filename (ibfd), (long)new_flags, (long)old_flags); + (*_bfd_error_handler) + ("%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)\n", + bfd_get_filename (ibfd), (long)new_flags, (long)old_flags); bfd_set_error (bfd_error_bad_value); return false; @@ -1065,11 +1065,11 @@ ppc_elf_unsupported_reloc (abfd, reloc_entry, symbol, data, input_section, char **error_message; { BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0); - fprintf (stderr, - "%s: Relocation %s (%d) is not currently supported.\n", - bfd_get_filename (abfd), - reloc_entry->howto->name, - reloc_entry->howto->type); + (*_bfd_error_handler) + ("%s: Relocation %s (%d) is not currently supported.\n", + bfd_get_filename (abfd), + reloc_entry->howto->name, + reloc_entry->howto->type); return bfd_reloc_notsupported; } @@ -1236,10 +1236,10 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, /* Unknown relocation handling */ if ((unsigned)r_type >= (unsigned)R_PPC_max || !ppc_elf_howto_table[(int)r_type]) { - fprintf (stderr, - "%s: Unknown relocation type %d\n", - bfd_get_filename (input_bfd), - (int)r_type); + (*_bfd_error_handler) + ("%s: Unknown relocation type %d\n", + bfd_get_filename (input_bfd), + (int)r_type); bfd_set_error (bfd_error_bad_value); ret = false; @@ -1281,11 +1281,11 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, /* Complain about known relocation that are not yet supported */ if (howto->special_function == ppc_elf_unsupported_reloc) { - fprintf (stderr, - "%s: Relocation %s (%d) is not currently supported.\n", - bfd_get_filename (input_bfd), - howto->name, - (int)r_type); + (*_bfd_error_handler) + ("%s: Relocation %s (%d) is not currently supported.\n", + bfd_get_filename (input_bfd), + howto->name, + (int)r_type); bfd_set_error (bfd_error_bad_value); ret = false; |