* elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
authorAlan Modra <amodra@gmail.com>
Thu, 19 Jun 2008 16:16:58 +0000 (16:16 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 19 Jun 2008 16:16:58 +0000 (16:16 +0000)
non-branch insns.

bfd/ChangeLog
bfd/elf32-spu.c

index 6e53fdf56340ed0617aaf1abc68ad90e0dd68e88..c17368ff852aa822ec958ceee823a0bfde148987 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-20  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
+       non-branch insns.
+
 2008-06-20  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-spu.c (build_stub): Allow wraparound on stub branches.
index 89b3422768f81e4bd3df8e1c318fb35924e0c218..b41d35f46d81e6e2d8702892c9cddda7f0b60d26 100644 (file)
@@ -819,7 +819,7 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
      section needs a stub.  */
   if (spu_elf_section_data (sym_sec->output_section)->u.o.ovl_index
        != spu_elf_section_data (input_section->output_section)->u.o.ovl_index)
-    return ovl_stub;
+    ret = ovl_stub;
 
   /* If this insn isn't a branch then we are possibly taking the
      address of a function and passing it out somehow.  */