summaryrefslogtreecommitdiffstats
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-12 07:47:13 +0000
committerAlan Modra <amodra@gmail.com>2007-04-12 07:47:13 +0000
commit2c67c5f3e9a4545ff5b0bd3dbea5a3630b1f6a01 (patch)
tree91f474d99024a04b9d15ea07cb07d23e28d6ca15 /bfd/elf32-spu.c
parentbddaf4aa262abea372cd0ff2d2bc9ded95580420 (diff)
downloadppe42-binutils-2c67c5f3e9a4545ff5b0bd3dbea5a3630b1f6a01.tar.gz
ppe42-binutils-2c67c5f3e9a4545ff5b0bd3dbea5a3630b1f6a01.zip
* elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
is non-NULL before dereferencing.
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 fac414e85c..df0b68ae22 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -704,7 +704,8 @@ needs_ovl_stub (const char *sym_name,
return FALSE;
if (sym_sec == NULL
- || sym_sec->output_section == NULL)
+ || sym_sec->output_section == NULL
+ || spu_elf_section_data (sym_sec->output_section) == NULL)
return FALSE;
/* setjmp always goes via an overlay stub, because then the return
OpenPOWER on IntegriCloud