From 7c39fb20eab5a7c3b8f060e38bcb7c9a100f5b8c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 19 Jun 2008 16:16:58 +0000 Subject: [PATCH] * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for non-branch insns. --- bfd/ChangeLog | 5 +++++ bfd/elf32-spu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6e53fdf563..c17368ff85 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-06-20 Alan Modra + + * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for + non-branch insns. + 2008-06-20 Alan Modra * elf32-spu.c (build_stub): Allow wraparound on stub branches. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 89b3422768..b41d35f46d 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. */ -- 2.34.1