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.
This commit is contained in:
Ian Lance Taylor 1992-10-23 21:42:04 +00:00
parent 09141f8dd5
commit 1045c20b4d
2 changed files with 8 additions and 1 deletions

View 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.

View 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));
}