aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-spu.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6e53fdf..c17368f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
(allocate_spuear_stubs, build_spuear_stubs): Return value from
count_stub/build_stub.
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 89b3422..b41d35f 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -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. */