X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fcoff-sh.c;h=044fc04304e6b3ac0fb202bb0d57ff426c20ad08;hb=3e1a8f9569478157ee932e35de928beb211f5df4;hp=5fb4da2b8ed91580ae982e64c184fb4e44f4f691;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c index 5fb4da2b8e..044fc04304 100644 --- a/bfd/coff-sh.c +++ b/bfd/coff-sh.c @@ -713,7 +713,7 @@ sh_relax_section (bfd *abfd, *again = FALSE; - if (link_info->relocatable + if (bfd_link_relocatable (link_info) || (sec->flags & SEC_RELOC) == 0 || sec->reloc_count == 0) return TRUE; @@ -2327,7 +2327,7 @@ _bfd_sh_align_load_span (bfd *abfd, if (dsp) { sh_opcodes[0xf].minor_opcodes = sh_dsp_opcodef; - sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef; + sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef [0]; } /* Instructions should be aligned on 2 byte boundaries. */ @@ -2836,7 +2836,7 @@ sh_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, + sec->output_section->vma + sec->output_offset); } - else if (! info->relocatable) + else if (! bfd_link_relocatable (info)) { if (! ((*info->callbacks->undefined_symbol) (info, h->root.root.string, input_bfd, input_section,