diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-15 02:24:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-15 02:24:53 +0000 |
commit | c92c35e7061ef1444fb08d73f8618d2dac543ee3 (patch) | |
tree | 13104b431dd3295b87fbaa0f0544ef6957ce5766 /ld | |
parent | 832b6402635e47707c1838a5ee300ccfb70b2d69 (diff) | |
download | gdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.zip gdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.tar.gz gdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.tar.bz2 |
Use bfd_cache_close, instead of accessing bfd->iostream directly.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldmain.c | 4 |
2 files changed, 6 insertions, 2 deletions
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 <cagney@redhat.com> + + * ldmain.c (remove_output): Call bfd_cache_close. + 2004-02-14 Richard Sandiford <rsandifo@redhat.com> * 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); } |