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/coff-a29k.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/coff-a29k.c')
-rw-r--r-- | bfd/coff-a29k.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index be35a6e..4673041 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -189,24 +189,15 @@ a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd, case R_BYTE: insn = bfd_get_8(abfd, hit_data); unsigned_value = insn + sym_value + reloc_entry->addend; - if (unsigned_value & 0xffffff00) { - fprintf(stderr,"Relocation problem : "); - fprintf(stderr,"byte value too large in module %s\n", - abfd->filename); + if (unsigned_value & 0xffffff00) return(bfd_reloc_overflow); - } bfd_put_8(abfd, unsigned_value, hit_data); break; case R_HWORD: insn = bfd_get_16(abfd, hit_data); unsigned_value = insn + sym_value + reloc_entry->addend; - if (unsigned_value & 0xffff0000) { - fprintf(stderr,"Relocation problem : "); - fprintf(stderr,"hword value too large in module %s\n", - abfd->filename); + if (unsigned_value & 0xffff0000) return(bfd_reloc_overflow); - } - bfd_put_16(abfd, insn, hit_data); break; case R_WORD: |