]> Git Repo - binutils.git/commitdiff
* merge.c (_bfd_merge_sections): Don't segfault if there
authorJakub Jelinek <[email protected]>
Tue, 5 Mar 2002 12:19:08 +0000 (12:19 +0000)
committerJakub Jelinek <[email protected]>
Tue, 5 Mar 2002 12:19:08 +0000 (12:19 +0000)
is nothing to merge due to GC.

bfd/ChangeLog
bfd/merge.c

index bcc16f3be0d6923945fbb4441d1d698f00f22c2d..a53bcbcde8608058e7782bf49448d7ceac9357ac 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-05  Jakub Jelinek  <[email protected]>
+
+       * merge.c (_bfd_merge_sections): Don't segfault if there
+       is nothing to merge due to GC.
+
 2002-03-05  Alan Modra  <[email protected]>
 
        * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
index 7b06c10debeec6c73bd937703a609530324ce87f..e175efdf881399ad90628ea1768c9678e6c67fa4 100644 (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
This page took 0.030651 seconds and 4 git commands to generate.