diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-10-23 21:42:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-10-23 21:42:04 +0000 |
commit | 1045c20b4d306bfa1b764f24117f588b4ff34f8e (patch) | |
tree | 776899734b640bbd6ab31c4fd7f9551fbebf24eb | |
parent | 09141f8dd57d07a1fb832c94a87dc9dad4169632 (diff) | |
download | gdb-1045c20b4d306bfa1b764f24117f588b4ff34f8e.zip gdb-1045c20b4d306bfa1b764f24117f588b4ff34f8e.tar.gz gdb-1045c20b4d306bfa1b764f24117f588b4ff34f8e.tar.bz2 |
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.
-rw-r--r-- | gas/config/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-coffbfd.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/config/ChangeLog b/gas/config/ChangeLog index ff153e2..5be9527 100644 --- a/gas/config/ChangeLog +++ b/gas/config/ChangeLog @@ -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. diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index 5ed7656..58a0302 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -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)); } |