From: Alan Modra Date: Thu, 12 Apr 2007 07:47:13 +0000 (+0000) Subject: * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data X-Git-Tag: binutils-2_18-branchpoint~1095 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c67c5f3e9a4545ff5b0bd3dbea5a3630b1f6a01;p=thirdparty%2Fbinutils-gdb.git * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data is non-NULL before dereferencing. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 45269778a7b..26a6f4db0ce 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-04-12 Alan Modra + + * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data + is non-NULL before dereferencing. + 2007-04-11 Nathan Sidwell * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index fac414e85cd..df0b68ae22d 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