X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fcoff-i960.c;h=b2c1512c272964064cc2912b9449313a6fa2b579;hb=3860d2b4b72feeef4cf045c6c9907a0476f46f3d;hp=963433eefc8265b31dfde62e573bb857bcfc8299;hpb=f4943d8253e8c9c539fd72d23e94a65f84c92d1a;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/coff-i960.c b/bfd/coff-i960.c index 963433eefc..b2c1512c27 100644 --- a/bfd/coff-i960.c +++ b/bfd/coff-i960.c @@ -1,5 +1,5 @@ /* BFD back-end for Intel 960 COFF files. - Copyright (C) 1990-2014 Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -322,7 +322,7 @@ coff_i960_start_final_link (bfd *abfd, struct bfd_link_info *info) asection *o; bfd_byte *esym; - if (! info->relocatable) + if (! bfd_link_relocatable (info)) return TRUE; esym = (bfd_byte *) bfd_malloc (symesz); @@ -447,18 +447,15 @@ coff_i960_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, + sec->output_section->vma + 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); } done = FALSE; - if (howto->type == R_OPTCALL && ! info->relocatable && symndx != -1) + if (howto->type == R_OPTCALL && ! bfd_link_relocatable (info) && symndx != -1) { int class_val; @@ -473,12 +470,11 @@ coff_i960_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, /* This symbol is apparently not from a COFF input file. We warn, and then assume that it is not a leaf function. */ - if (! ((*info->callbacks->reloc_dangerous) - (info, - _("uncertain calling convention for non-COFF symbol"), - input_bfd, input_section, - rel->r_vaddr - input_section->vma))) - return FALSE; + (*info->callbacks->reloc_dangerous) + (info, + _("uncertain calling convention for non-COFF symbol"), + input_bfd, input_section, + rel->r_vaddr - input_section->vma); break; case C_LEAFSTAT: case C_LEAFEXT: @@ -555,11 +551,10 @@ coff_i960_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, 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); } } }