aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-12-05 03:29:20 +0000
committerAlan Modra <amodra@gmail.com>2007-12-05 03:29:20 +0000
commitd688b66ee1470fe1c6a1eec2869f6f324ecd1ac3 (patch)
tree432c7ba5534119ead71412dba8db2ea6d0f1c569 /bfd/elf32-spu.c
parentad25e7d5fcf3fb0091d9b7679571929ddb483ada (diff)
downloadbinutils-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.zip
binutils-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.tar.gz
binutils-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.tar.bz2
* 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 7da9cb6..62a922a 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;
}