aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-07-07 16:02:32 +0000
committerNick Clifton <nickc@redhat.com>2008-07-07 16:02:32 +0000
commit329dcd78c6071872f5b230331d98337479a4fa73 (patch)
tree20a6ca6b20ca8a03750d974c3ce7ca1169ee7637 /bfd/elf32-arm.c
parent5ae4183a2a6e89d3502539eb169695ab22034bf1 (diff)
downloadgdb-329dcd78c6071872f5b230331d98337479a4fa73.zip
gdb-329dcd78c6071872f5b230331d98337479a4fa73.tar.gz
gdb-329dcd78c6071872f5b230331d98337479a4fa73.tar.bz2
* elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
the presence of a PLT.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 2faefdf..2ee0bb2 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -2777,7 +2777,7 @@ arm_type_of_stub (struct bfd_link_info *info,
/* If the call will go through a PLT entry then we do not need
glue. */
- if (globals->splt != NULL && hash->root.plt.offset != (bfd_vma) -1)
+ if (globals->splt != NULL && hash != NULL && hash->root.plt.offset != (bfd_vma) -1)
return stub_type;
if (r_type == R_ARM_THM_CALL)