From c92c35e7061ef1444fb08d73f8618d2dac543ee3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 15 Feb 2004 02:24:53 +0000 Subject: Use bfd_cache_close, instead of accessing bfd->iostream directly. --- ld/ChangeLog | 4 ++++ ld/ldmain.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index b2a7766..358b767 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2004-02-14 Andrew Cagney + + * ldmain.c (remove_output): Call bfd_cache_close. + 2004-02-14 Richard Sandiford * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard diff --git a/ld/ldmain.c b/ld/ldmain.c index bbafcdb..88b5c75 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -159,8 +159,8 @@ remove_output (void) { 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); } -- cgit v1.1