This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[rfa] Use bfd_cache_close in ld/
- From: Andrew Cagney <cagney at gnu dot org>
- To: binutils at sources dot redhat dot com
- Date: Sat, 14 Feb 2004 18:40:01 -0500
- Subject: [rfa] Use bfd_cache_close in ld/
Another one, ok?
Andrew
2004-02-14 Andrew Cagney <cagney@redhat.com>
* ldmain.c (remove_output): Call bfd_cache_close.
Index: ldmain.c
===================================================================
RCS file: /cvs/src/src/ld/ldmain.c,v
retrieving revision 1.77
diff -u -r1.77 ldmain.c
--- ldmain.c 4 Dec 2003 22:43:33 -0000 1.77
+++ ldmain.c 14 Feb 2004 23:38:53 -0000
@@ -159,8 +159,8 @@
{
if (output_filename)
{
- if (output_bfd && output_bfd->iostream)
- fclose ((FILE *) (output_bfd->iostream));
+ if (output_bfd)
+ bfd_cache_close (output_bfd);
if (delete_output_file_on_failure)
unlink (output_filename);
}