PR 5646
* elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr non-NULL before dereferencing.
This commit is contained in:
parent
145f4ab500
commit
85f7a9cbe2
|
@ -1,3 +1,9 @@
|
|||
2008-01-19 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR 5646
|
||||
* elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
|
||||
non-NULL before dereferencing.
|
||||
|
||||
2008-01-15 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR 5604
|
||||
|
|
|
@ -7074,7 +7074,7 @@ ppc64_elf_tls_optimize (bfd *obfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
|
|||
break;
|
||||
}
|
||||
|
||||
if (expecting_tls_get_addr)
|
||||
if (expecting_tls_get_addr && htab->tls_get_addr != NULL)
|
||||
{
|
||||
struct plt_entry *ent;
|
||||
for (ent = htab->tls_get_addr->elf.plt.plist;
|
||||
|
@ -7091,7 +7091,7 @@ ppc64_elf_tls_optimize (bfd *obfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
|
|||
}
|
||||
}
|
||||
|
||||
if (expecting_tls_get_addr)
|
||||
if (expecting_tls_get_addr && htab->tls_get_addr_fd != NULL)
|
||||
{
|
||||
struct plt_entry *ent;
|
||||
for (ent = htab->tls_get_addr_fd->elf.plt.plist;
|
||||
|
|
Loading…
Reference in New Issue