* elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
authorNick Clifton <nickc@redhat.com>
Mon, 7 Jul 2008 16:02:32 +0000 (16:02 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Jul 2008 16:02:32 +0000 (16:02 +0000)
        the presence of a PLT.

bfd/ChangeLog
bfd/elf32-arm.c

index ef2ac33741f53338855f50991cdc3f88a0765b54..4b5843604e8872a4217fa69cf03c10db621d3f77 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-07  Christophe Lyon  <christophe.lyon@st.com>
+
+       * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
+       the presence of a PLT.
+
 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
 
        * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
index 2faefdf421cba24772a2ed02044e2b3327001b16..2ee0bb23b51b372d6586c486a6fdd90ffd7e0414 100644 (file)
@@ -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)
This page took 0.029755 seconds and 4 git commands to generate.