aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-06-19 16:16:58 +0000
committerAlan Modra <amodra@gmail.com>2008-06-19 16:16:58 +0000
commit7c39fb20eab5a7c3b8f060e38bcb7c9a100f5b8c (patch)
tree335bd7256f558233a060c7c75c619b503a948df1 /bfd/elf32-spu.c
parentb129575789c672720371d408e82e7e31cd81196e (diff)
downloadbinutils-7c39fb20eab5a7c3b8f060e38bcb7c9a100f5b8c.zip
binutils-7c39fb20eab5a7c3b8f060e38bcb7c9a100f5b8c.tar.gz
binutils-7c39fb20eab5a7c3b8f060e38bcb7c9a100f5b8c.tar.bz2
* elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
non-branch insns.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c2
1 files changed, 1 insertions, 1 deletions
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. */