Don't segfault or assert on NULL tls_sec
authorAlan Modra <amodra@gmail.com>
Thu, 29 Jan 2015 09:08:28 +0000 (19:38 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Feb 2015 03:36:27 +0000 (14:06 +1030)
commit989f98793c06132bb5cdc2f7807b7eee5108342f
tree55837e1e0a367fa4492dcde295e84c9ed2465cef
parentca4be51cd81b0bfff2ada60c98e7c67c936045b7
Don't segfault or assert on NULL tls_sec

Real code won't hit these, but it's possible to contrive a testcase..

* elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL
tls_sec.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c
bfd/elflink.c