* elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in

the presence of a PLT.
This commit is contained in:
Nick Clifton 2008-07-07 16:02:32 +00:00
parent 5ae4183a2a
commit 329dcd78c6
2 changed files with 6 additions and 1 deletions

View 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.

View 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)