summaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-12-05 03:29:20 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-12-05 03:29:20 +0000
commit2a27c89a87154ee5899243d17f4dc8a967875c18 (patch)
treec08278831643ff7e65df616fb9c425b8ce436096 /bfd/elf32-spu.c
parent4740f28385ddcfb698643a4e7421053711a9fbdc (diff)
downloadbinutils-redhat-2a27c89a87154ee5899243d17f4dc8a967875c18.tar.gz
* elf32-spu.c (spu_elf_size_stubs): Do consider branches to
non-function symbols for overlay stubs.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 7da9cb6960..62a922a3e4 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -996,6 +996,7 @@ spu_elf_size_stubs (bfd *output_bfd,
sym,
sym_sec);
}
+
if (sym_type != STT_FUNC)
{
/* It's common for people to write assembly and forget
@@ -1008,7 +1009,7 @@ spu_elf_size_stubs (bfd *output_bfd,
(*_bfd_error_handler) (_("warning: call to non-function"
" symbol %s defined in %B"),
sym_sec->owner, sym_name);
- else
+ else if (insn_type == non_branch)
continue;
}