* merge.c (_bfd_merge_sections): Don't segfault if there

is nothing to merge due to GC.
This commit is contained in:
Jakub Jelinek 2002-03-05 12:19:08 +00:00
parent 2d13d8c5ee
commit 86eaf01e5d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-03-05 Jakub Jelinek <jakub@redhat.com>
* merge.c (_bfd_merge_sections): Don't segfault if there
is nothing to merge due to GC.
2002-03-05 Alan Modra <amodra@bigpond.net.au>
* elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep

View File

@ -804,6 +804,9 @@ _bfd_merge_sections (abfd, xsinfo, remove_hook)
if (secinfo)
continue;
if (sinfo->htab->first == NULL)
continue;
if (sinfo->htab->strings)
merge_strings (sinfo);
else