aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-15 02:24:53 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-15 02:24:53 +0000
commitc92c35e7061ef1444fb08d73f8618d2dac543ee3 (patch)
tree13104b431dd3295b87fbaa0f0544ef6957ce5766 /ld/ldmain.c
parent832b6402635e47707c1838a5ee300ccfb70b2d69 (diff)
downloadgdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.zip
gdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.tar.gz
gdb-c92c35e7061ef1444fb08d73f8618d2dac543ee3.tar.bz2
Use bfd_cache_close, instead of accessing bfd->iostream directly.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 2 insertions, 2 deletions
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);
}