X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcoff-tic80.c;h=2de7932ba6d16259f93cad3ee75cd461d14a5c8d;hb=695344c018c8e462280c47a644df02ea472b0a4e;hp=80bb05ef19589e210325942d70cc00fa323cfd14;hpb=6d00b590316c0b08de21a264893b0fd627c54686;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/coff-tic80.c b/bfd/coff-tic80.c index 80bb05ef19..2de7932ba6 100644 --- a/bfd/coff-tic80.c +++ b/bfd/coff-tic80.c @@ -1,5 +1,5 @@ /* BFD back-end for Texas Instruments TMS320C80 Multimedia Video Processor (MVP). - Copyright (C) 1996-2014 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. Written by Fred Fish (fnf@cygnus.com) @@ -436,8 +436,8 @@ rtype2howto (arelent *cache_ptr, struct internal_reloc *dst) } } - (*_bfd_error_handler) (_("Unrecognized reloc type 0x%x"), - (unsigned int) dst->r_type); + _bfd_error_handler (_("Unrecognized reloc type 0x%x"), + (unsigned int) dst->r_type); cache_ptr->howto = tic80_howto_table + 0; } @@ -562,13 +562,10 @@ coff_tic80_relocate_section (bfd *output_bfd, + sec->output_offset); } - else if (! info->relocatable) - { - if (! ((*info->callbacks->undefined_symbol) - (info, h->root.root.string, input_bfd, input_section, - rel->r_vaddr - input_section->vma, TRUE))) - return FALSE; - } + else if (! bfd_link_relocatable (info)) + (*info->callbacks->undefined_symbol) + (info, h->root.root.string, input_bfd, input_section, + rel->r_vaddr - input_section->vma, TRUE); } addr = rel->r_vaddr - input_section->vma; @@ -668,7 +665,8 @@ coff_tic80_relocate_section (bfd *output_bfd, case bfd_reloc_ok: break; case bfd_reloc_outofrange: - (*_bfd_error_handler) + _bfd_error_handler + /* xgettext: c-format */ (_("%B: bad reloc address 0x%lx in section `%A'"), input_bfd, input_section, (unsigned long) rel->r_vaddr); return FALSE; @@ -688,11 +686,10 @@ coff_tic80_relocate_section (bfd *output_bfd, return FALSE; } - if (! ((*info->callbacks->reloc_overflow) - (info, (h ? &h->root : NULL), name, howto->name, - (bfd_vma) 0, input_bfd, input_section, - rel->r_vaddr - input_section->vma))) - return FALSE; + (*info->callbacks->reloc_overflow) + (info, (h ? &h->root : NULL), name, howto->name, + (bfd_vma) 0, input_bfd, input_section, + rel->r_vaddr - input_section->vma); } } }