* xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
authorIan Lance Taylor <ian@airs.com>
Tue, 21 Nov 1995 21:25:35 +0000 (21:25 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 21 Nov 1995 21:25:35 +0000 (21:25 +0000)
special_sections before returning when called with a non XCOFF
BFD.

bfd/ChangeLog
bfd/xcofflink.c

index d0915241f27e8e8a4f008fa8793caad5074b0205..131841d889584258fd533650d5b67b574a43035e 100644 (file)
@@ -1,5 +1,9 @@
 Tue Nov 21 13:03:57 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
+       special_sections before returning when called with a non XCOFF
+       BFD.
+
        * coffgen.c (coff_renumber_symbols): Sort common symbols with
        global symbols.
 
index 78a2a44706219faf2a620f1d2b3b07ab01fead84..7fd546d40795bb17deb0727ee69713768b66ca71 100644 (file)
@@ -2634,7 +2634,11 @@ bfd_xcoff_size_dynamic_sections (output_bfd, info, libpath, entry,
   bfd_byte *debug_contents = NULL;
 
   if (! XCOFF_XVECP (output_bfd->xvec))
-    return true;
+    {
+      for (i = 0; i < 6; i++)
+       special_sections[i] = NULL;
+      return true;
+    }
 
   ldinfo.failed = false;
   ldinfo.output_bfd = output_bfd;
This page took 0.039111 seconds and 4 git commands to generate.