Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
authorIan Lance Taylor <ian@airs.com>
Fri, 23 Oct 1992 21:42:04 +0000 (21:42 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 23 Oct 1992 21:42:04 +0000 (21:42 +0000)
* obj-coffbfd.c (write_object_file): check return value of
bfd_close_all_done.

gas/config/ChangeLog
gas/config/obj-coffbfd.c

index ff153e20b193be87d0040c5d79a5f88f4f85585a..5be9527c5120ec6291ed820ac32ec9ba64bdf80c 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct 23 14:40:38 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * obj-coffbfd.c (write_object_file): check return value of
+       bfd_close_all_done.
+
 Tue Oct 20 13:02:25 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * Support for i386-sysv.
index 5ed765633c6735902a7de6ad6b99cfbc4e83a0f4..58a03021b2ffc73da10735ba826cfec47e7405d3 100644 (file)
@@ -1782,7 +1782,9 @@ extern void DEFUN_VOID(write_object_file)
   }
     coff_header_append(abfd, &filehdr, &aouthdr);
 
-    bfd_close_all_done(abfd);
+    if (bfd_close_all_done(abfd) == false)
+      as_fatal ("Can't close %s: %s", out_file_name,
+               bfd_errmsg (bfd_error));
 }